VoiceOver announcing hidden navbar with embedded textfield

Originator:goldins
Number:rdar://25342905 Date Originated:03/24/2016
Status:Closed Resolved:Not a bug
Product:iOS Product Version:9.2.1 (13D15)
Classification:Other Bug Reproducible:Always
 
Summary:
When a textfield or any other control is in the navigation bar's titleView VoiceOver will announce the control, if it was "discovered" when the navigation bar transitions to a hidden state from a visible state.

Steps to Reproduce:
Pre-step: Make sure that VoiceOver is enabled

1. Open and run attached sample app
2. Scroll down until navigation bar that holds a red textfield appears
3. Single tap on the textfield in the navigation bar so that VoiceOver announces it
4. Tap a visible cell underneath the navigation bar
5. Scroll as far as you can back up the page

Expected Results:
The textfield that is in the navigation bar should not be announced by VoiceOver since it is no longer displayed on screen.

Actual Results:
The textfield that is in the navigation bar is announced by VoiceOver when it is no longer displayed on screen.

Version:
9.2.1 (13D15)

Notes:
This is NOT in the code sample, but I have tried to manage state with VoiceOver when transitioning between states:
- Tried managing my accessibilityElements array by adding and removing the elements
- Flipping the state of isAccessibilityElement
- Flipping the state of accessibilityElementsHidden

Configuration:
iPhone 6+, 9.2 Simulator, iPhone 6

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!