Search Bar jumps around and disappears

Originator:oliver.drobnik
Number:rdar://16938543 Date Originated:16-May-2014 09:43 AM
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 7.1.1 (11D201)
Classification:UI/Usability Reproducible:Always
 
Summary:
When implementing a search display controller + search bar via Storyboard the search bar jumps around if there is no navigation bar. It also disappears if the developer does not change the ordering.

Steps to Reproduce:
1) Create a single view app from template
2) Replace the view controller with a UITableViewController
3) In IB, drag a “Search Bar and Search Display Controller” onto the table view
4) Run the app

Expected Results:
- The search bar should be below the status bar area
- On hitting the Cancel button next to the search text field it should remain visible

Actual Results:
- The search bar underlaps the status bar area
- Starting to type a search query makes it jump down to be below the status bar area
- Hitting Cancel makes it disappear

Notes:
The positioning problem only shows if there is no navigation bar. The disappearing problem can be worked around by changing the order of the Search Bar and prototype cell so that the search bar is above it in the list of Table View subviews.

As a developer I expect to be able to use a search display controller and table view without having to have a navigation bar. A developer would also not suspect that the order of items in IB would matter since prototype cells are not actually subviews of the table view. iOS should be smart enough to position the search bar correctly and prevent it from disappearing at all cost.

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!