Status bar inset applied twice

Originator:douglashill
Number:rdar://23256354 Date Originated:26-Oct-2015 01:11 PM
Status:Open Resolved:
Product:iOS SDK Product Version:
Classification: Reproducible:
 
Summary:
When UISearchController is used in a view in a popover presentation that adapts from popover to full screen, the table view ends up inset 20 points lower than expected.

It appears the status bar inset is applied twice: once by the navigation controller and once by the search presentation controller.

Steps to Reproduce:
1. Open the attached sample project
2. Run the app on iPad Air 2
3. Follow the instructions in the app

Expected Results:
After cancelling, the top of the search bar should be aligned with the bottom of the navigation bar.

Actual Results:
The search bar is 20 points too low. Indeed, the whole table view content is inset 20 points from the top.

Version:
iOS 9.1 Xcode 7.1 (7B91b)

Notes:


Configuration:
iPad Air 2 simulator

Attachments:
'SearchStatusBarInset.zip' was successfully uploaded.

- - - - - - - - - -

If you look carefully, the table content is 20 points too low immediately after rotation, but it isn’t easy to see until search is cancelled. You can get a good sense of what’s going on by logging or setting a breakpoint in the table view’s `setContentInset:`.

Comments

https://www.dropbox.com/s/jgxkaswfyhmj5hr/SearchStatusBarInset%2023256354.zip?dl=0

By douglashill at Oct. 27, 2015, 12:02 p.m. (reply...)

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!