accessibilityIdentifier for UIBarButtonItem and UITabBarItem
| Originator: | milkservice | ||
| Number: | rdar://19029195 | Date Originated: | 19-Nov-2014 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Both UIBarButtonItem and UITabBarItem support the UIAccessibilityIdentification protocol. So it is possible to set the accessibilityIdentifier. Unfortunately when the bar buttons are shown on screen, the accessibilityIdentifier is nil. Steps to Reproduce: 1. Create a new app with a TabBar and a NavigationController 2. Create a UIBarButtonItem and set its accessibilityIdentifier 3. Place it as a rightBarButtonItem 4. Create a UITabBarItem and set its accessibilityIdentifier 5. Place it in the TabBar. Expected Results: The UIBarButtonItem and UITabBarItem can be found via the accessibilityIdentifier. Actual Results: The accessibilityIdentifier for the UIBarButtonItem and UITabBarItem is nil. Version: iOS 8.1 Notes: Configuration: iPhone 5 with iOS 8.1
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!