UISearchController's searchBar presented incorrect

Originator:januscornelissen
Number:rdar://18007146 Date Originated:13-Aug-2014 07:25 PM
Status:Open Resolved:
Product:iOS 8 beta 5 Product Version:
Classification: Reproducible:Yes
 
Summary:
When presenting a UISerchController, the UISearchbar is positioned too high when `searchController.hidesNavigationBarDuringPresentation = NO` (attachment 1) or not at all when `searchController.hidesNavigationBarDuringPresentation = YES` (attachment 2), leaving a grey area in the latter case.

Steps to Reproduce:
Init a UISearchController and present it with `[self presentViewController:self.searchController animated:YES completion:nil];` (not 100% sure this is the correct way to do it, but it's nowhere specified in the documentation).

Expected Results:
UISearchBar animating in to the correct postion, like in Calendar.app.

Actual Results:
No visible or misplaced UISearchBar depending on the implementation.

Version:
iOS 8 beta 5

Notes:
UI is incorrect

Configuration:
iPod touch and Simulator

Attachments:
'Screen Shot 2014-08-13 at 19.06.46.png' and 'Screen Shot 2014-08-13 at 19.11.38.png' were successfully uploaded.

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!