Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS Voiceover status

I am trying to add accessibility features to an iOS app that has already been developed.

There are a couple of UI features (e.g. buttons) that I like them to show up if the VoiceOver option in the accessibility menu of the iPhone settings is on and do not show up if the voiceover is off.

Is there a way to check whether the voiceover option is on or not?

like image 332
Arash Avatar asked Jan 11 '12 22:01

Arash


People also ask

Is VoiceOver enabled?

By using your app with VoiceOver on, you can establish a baseline of its accessibility. To start auditing, choose Settings > Accessibility > VoiceOver, and enable VoiceOver. Then, open your app and use the specified action whenever you want to test VoiceOver.

What does VoiceOver mean on iPhone?

With VoiceOver—a gesture-based screen reader—you can use iPhone even if you can't see the screen. VoiceOver gives audible descriptions of what's on your screen—from battery level, to who's calling, to which app your finger is on.

How do you check VoiceOver on iPhone?

Testing with VoiceOver You can turn VoiceOver on/off at any time by triple clicking the home button, but the first time it's a good idea to go to Settings > General > Accessibility > VoiceOver and tap the switch to turn it on. At the same time check that Speak Hints is enabled (it's on by default).

What does VoiceOver mode do?

VoiceOver is an iOS Accessibility feature that reads screen descriptions aloud so you can use an iPhone without being able to see the screen.


2 Answers

BOOL UIAccessibilityIsVoiceOverRunning(); 
like image 98
David Dunham Avatar answered Oct 06 '22 08:10

David Dunham


In ViewDIdLoad

[[NSNotificationCenter defaultCenter] addObserver:self                                          selector:@selector(voiceOverStatusChanged)                                              name:UIAccessibilityVoiceOverStatusChanged                                            object:nil];   - (void)voiceOverStatusChanged {     if(!UIAccessibilityIsVoiceOverRunning())     {         //do your changes     } } 
like image 45
Rakesh iOS Dev Avatar answered Oct 06 '22 08:10

Rakesh iOS Dev