UISegmentedControl doesn't use accessibilityLabel of Swift String types during Voice Over

Originator:dacohn
Number:rdar://27588861 Date Originated:07/28/2016
Status:Open Resolved:
Product: Product Version:
Classification: Reproducible:
 
Summary:
When setting the segments of a UISegmentedControl using insertSegmentWithTitle... in Swift, the accessibilityLabel is not read by Voice Over when the title is a String object. If it's a NSString, then it is read correctly.

Steps to Reproduce:
1. Open and run attached sample project
2. Enable Voice Over
3. Notice segment one is read as "test a" correctly
4. Notice segment two is read as "b" instead of "test b"

Expected Results:
Segment two should be read as "test b"

Actual Results:
Segment two is read as "b"

Version:
iOS 9.3 (13E233)

Notes:


Configuration:
iPhone 5s (A1533)

Attachments:
'SegmentedControlAccessibiltySwift.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!