Search Keyboard Disappears After Editing UITextField

Originator:rwgrier
Number:rdar://28324601 Date Originated:15-Sep-2016 03:20 PM
Status:Duplicate/27951376 Resolved:20-Sep-2016 02:18 AM
Product:tvOS SDK Product Version:9+
Classification:Serious Bug Reproducible:Always
 
Summary:
I have a tabbed tvOS app. The last tab is a search tab. If I launch the app and go to that search tab, the search bar keyboard is visible. If I navigate to another tab, edit a text field and go back to the search tab, the search keyboard is missing. 

I've tried things like called `becomeFirstResponder()` on the search bar and setting `active` to true on the UISearchController. Both have failed. When I investigate these values without attempting to edit them, they are both what I expect them to be. However, the keyboard is missing. 

I've also noticed this in Apple's own UIKit Catalog (tvOS) project (Version 1.5, 2016-09-13). The steps to reproduce below will be from that project so I don't need to create my own project and upload it here.  

On a separate note, the search tab crashes for me on anything other than tvOS 10. Which is a shame.

Steps to Reproduce:
1. Launch UIKitCatalog (tvOS): 
2. Navigate to the search tab
3. Notice that the search bar keyboard is present and accounted for. 
4. Navigate to the Text Entry tab
5. Select UITextField from the left
6. Select Regular text field placeholder on the right
7. Enter text and press Next.
8. Enter text (on Email Address screen) and press Next
9. Enter number(s) (on Number Pad screen) and press Next
10. Enter number(s) (on Numbers and Punctation <- misspelled screen) and press Done
11. Navigate back to the search screen. 
 

Expected Results:
The search bar keyboard should be visible and accessible. 

Actual Results:
The search bar keyboard is missing and not accessible. 

Version:
tvOS 9 and tvOS 10

Notes:
A workaround for me is to remove the search tab and rebuild it once the user has finished editing the text fields. However, this is a pain and the user loses what they had been searching for.

Configuration:
tvOS 9/10 Simulators and Apple TV devices

Attachments:

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!