iOS voice over called on UIButton regardless of accessibility disabled

ios, voiceover

Solution

try

button.accessibilityElementsHidden = YES;

this should works

Problem

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

Original source