Davao
Davao

Reputation: 33

How to get the selected element of the iOS Voiceover

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?

Upvotes: 2

Views: 1402

Answers (1)

Related Questions