Search code examples
iphoneiosuibuttonios7voiceover

iOS 7 Voiceover issue with UIButton


I have a voiceover accessible app. In iOS 6 the UIButtons announce something to the user when the button is clicked. in iOS 7, when the user clicks the button, voiceover now announces "selected - - and then announces what I want it to say. I desperatley need to get rid of the "selected - " part of it, as it is ruining the flow of the app for many of the blind users.

Anyone have an idea on how to remedy this?


Solution

  • try this

    button.accessibilityLabel = nil/@""; button.accessibilityValue = @"announcement string";