Xcode cannot remove an Accessibility Hint or Label within a Storyboard

Originator:amolloy
Number:rdar://20666194 Date Originated:4/23/2015
Status:Duplicate (13133937) Resolved:4/28/2015
Product:Xcode Product Version:6.3.1
Classification:UI/Usability Reproducible:Always
 
Summary:
If an accessibility hint or label is ever set on a user interface element in Xcode, it can never be completely removed without hand editing the storyboard file, preventing the default hint or label from being used at run time.

Steps to Reproduce:
1. Unzip the attached archive, AccessibilityTest.zip
2. From within the newly created folder, open AccessibilityTest.xcodeproj in Xcode.
3. Build and run the application on a device with VoiceOver enabled.
4. Note that the button in the middle of the screen uses the default Accessibility Label, which is the title of the button ("Accessible Button").
5. Back in Xcode, open Main.storyboard
6. Select the "Accessible Button" button.
7. Press ⌥⌘3 to open the Identity Inspector
8. Scroll down until you see the Accessibility information and set the Accessibility Label to "Test".
9. Build and run the application again and note that the button now uses the accessibility label "Test"
10. Back in Xcode, delete the contents of the Accessibility Label so the field is empty.
11. Build and run the application again

Expected Results:
The button would use the default accessibility label, which is the title of the button ("Accessible Button").

Actual Results:
The button has no accessibility label, so VoiceOver simple says "Button" when it is selected.

Version:
Xcode 6.3.1 (6D1002), all OS X and iOS versions.

Notes:
In the storyboard file, before editing the accessibility label there is no property at all for the accessibility label. Once the label has been added and then removed, there is a property for it with an empty string. The issue can be resolved by removing the label property by hand in a text editor.

Configuration:
This occurs with all software and hardware configurations I've tried it on.

Attachments:
'AccessibilityTest.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!