I have an iOS Swift App and i want to detect which element is selected by the voiceover.
Have tried to send an UIAccessibilitySwitchControlStatusDidChangeNotification but i don't get this to work.
NSNotificationCenter.defaultCenter().addObserver(
self,
selector: "handleVoiceoverSelection",
name: UIAccessibilitySwitchControlStatusDidChangeNotification,
object: nil)
...
func handleVoiceoverSelection(){
println("!!!! element selected !!!!")
}
Is there any way?
Maybe check out UIAccessibilityFocus?