![](/img/trans.png)
[英]How to get the selected element of the IOS voiceover on a webpage using JavaScript?
[英]How to get the selected element of the iOS Voiceover
我有一個iOS Swift應用程序,我想檢測畫外音選擇了哪個元素。
曾嘗試發送UIAccessibilitySwitchControlStatusDidChangeNotification,但我沒有使它正常工作。
NSNotificationCenter.defaultCenter().addObserver(
self,
selector: "handleVoiceoverSelection",
name: UIAccessibilitySwitchControlStatusDidChangeNotification,
object: nil)
...
func handleVoiceoverSelection(){
println("!!!! element selected !!!!")
}
有什么辦法嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.