UISearchBar will not extend under iOS 7 status bar when used with UISearchDisplayController

Originator:rjsdev
Number:rdar://15128926 Date Originated:2 Oct 2013
Status:Duplicate of 14748700 Resolved:
Product:iOS 7 Product Version:7.0 (11A465)
Classification: Reproducible:Always
 
Summary:
Sample project described in "Steps to reproduce" shows a simple iPhone project with a UISearchBar attached to the top of the screen. The project is correctly configured for the search bar background to extend behind the status bar. However this only happens when no search display controller is used.

Steps to Reproduce:
1. Open this Xcode project in Xcode 5 https://github.com/rjsdev/SearchDisplayControllerBugDemo.git

2. Build and run in iPhone Simulator.

3. Comment out lines 24-26 in RJSViewController.m.

4. Build and run again.

Expected Results:
UISearchBar background extends under status bar on both runs.

Actual Results:
UISearchBar background does not extend under status bar on first run, where the search bar is linked to a search display controller.

Version:
iOS 7.0 (11A465)

Notes:
I will submit a separate report about appearance of search bar compared with other bars, which is also illustrated by this sample project.

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!