Opaque UINavigationBar Results In UISearchController Layout Issues
| Originator: | jonathan | ||
| Number: | rdar://18346102 | Date Originated: | 09/15/2014 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | IOS 8 |
| Classification: | Severe | Reproducible: | Always |
When using a UISearchController / UISearchBar in a UITableViewController embedded in a UINavigationController, and the UINavigationBar's translucent property is set to NO, the UISearchBar is laid out incorrectly when becoming active. Steps to Reproduce: 1. Add a UITableViewController subclass as the root view controller of a UINavigationController. 2. Set the UINavigationBar's translucent property to NO. 3. Install a UISearchController's UISearchBar property as the tableHeaderView. 4. Activate the search bar by tapping into it. 5. There will be empty space above the UISearchBar (where the status bar usually is) and the content controller's content will appear behind it. Screenshot: http://cl.ly/image/1X1C0a0j1o1E Sample Project: http://cl.ly/1f091g1V2O1P/UISearchController%20Example%20Project.zip
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!