Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS voice over called on UIButton regardless of accessibility disabled

Tags:

ios

voiceover

I have disabled the Accessibility option of a UIButton in the identity inspector but voice over still reads out the text when the item is clicked. What's the problem?

I'm developing for iOS >= 6.1 on Xcode 5

like image 649
Royston Yinkore Avatar asked Feb 05 '14 16:02

Royston Yinkore


1 Answers

try

button.accessibilityElementsHidden = YES;

this should works

like image 126
Rocky Perera Avatar answered Nov 18 '22 11:11

Rocky Perera