Setting a UISearchBar from a Xib does not show the search bar on iOS 5
||Product Version:||(6.0) Xcode 4.5.2|
I attached a sample app which demonstrates the problem.
I have a Xib that represents a UITableViewController with a UISearchBar in the UITableView table header.
If I run on iOS 6, it works.
If I run on iOS 5.1, the UISearchBar does not show.
I set the Xib file to be compatible with iOS 5.1 (with auto-layout disabled).
Steps to Reproduce:
- Create a new controller based on a UITableViewController with a xib file
- Add a UISearchBar in the UITableView header
- Run on iOS 6, works good.
- Run on iOS 5, the UISearchBar does not show.
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!