My app has a UISegmentedControl
that contains two buttons. I'm able to access each button's accessibility fields; the problem I'm having is that for subviews of a segmented control, VoiceOver reads out the subview's accessibility properties and then announces the view's position within the segmented control, so the VoiceOver announcement for the first button is "Previous message. Button. One of two." and for the second button it's "Next message. Button. Two of two."
How can I prevent the last part of these announcements (the "one of two" and "two of two" parts), which have no real meaning to VoiceOver users?
When you hear "VoiceOver off," you’ll know that VoiceOver is disabled. To turn VoiceOver back on, triple-click the Home button once more. If you have multiple options assigned to triple-click (such as Voice Over, Assistive Touch, etc.), you'll need to select which one you want to turn off.
If you are hearing voice narration while preforming an activity on the TV, such as changing the volume, an accessibility function has been turned on. Use the following steps to review and turn off your accessibility settings: Press the HOME button.
Turn off voice narration when changing volume, channels or browsing the menu. Press the HOME button. Select Settings and press the Enter button. Press the Down arrow button to select Accessibility, and press the Enter button. Press the Down arrow button to scroll through the available settings. ...
Using the Settings App Tap your iPhone's Settings once to select it and twice more to open it. Tap General once to select it and then twice more to open it. Tap Accessibility once to select it and then twice more to open it. Tap VoiceOver once to select it and then twice more to open it.
You can set accessibilityTraits
property of UISegmentedControl
's subviews to UIAccessibilityTraitNone
to disable "Tab X of Y" part of the VoiceOver:
for (UIView *thisView in self.segmentedControl.subviews) {
[thisView setAccessibilityTraits:UIAccessibilityTraitNone];
}
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