UISearchController's searchBar overlaps status bar in portrait orientation on iPhone after rotation during the view of a search result

Originator:chmohler
Number:rdar://24026006 Date Originated:12/30/2015
Status:open Resolved:
Product:iPhone Product Version:iOS 8.4 or 9.2
Classification:UI Reproducible:always
 
In portrait orientation, UISearchController's searchBar overlaps iPhone's status bar when the user returns from viewing the detail view of a search result after rotating the device during that detail view.

This occurs even with Apple's own "Table Search with UISearchController" sample code, found at https://developer.apple.com/library/ios/samplecode/TableSearch_UISearchController/Introduction/Intro.html (also included as an attached file, with a screenshot of the UI problem).

Steps to Reproduce:
1.  On iPhone, perform a search using UISearchController on a tableView.
2.  Select one of the cells of one of the returned search results.
3.  When the detail for that cell is revealed, rotate the device.
4.  Navigate back to the search results list.
5.  Rotate iPhone to portrait orientation. 

Expected Results:
The searchBar does not overlap the status bar.

Actual Results:
 The searchBar overlaps the status bar.

Version:
iOS 8.4 or 9.2

Notes:
This bug is largely a duplicate of rdar://21765864.

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!