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?
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.
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.
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).
VoiceOver is an iOS Accessibility feature that reads screen descriptions aloud so you can use an iPhone without being able to see the screen.
BOOL UIAccessibilityIsVoiceOverRunning();
In ViewDIdLoad
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(voiceOverStatusChanged) name:UIAccessibilityVoiceOverStatusChanged object:nil]; - (void)voiceOverStatusChanged { if(!UIAccessibilityIsVoiceOverRunning()) { //do your changes } }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With