Hope someone knows what to do, this is driving me nuts !
I've got a very simple UITableViewController, in an existing application, to which I have added a UISearchBar using interface builder (drag n drop)
Note: This problem exists when testing in either iOS 6 or iOS 7
My problem is that when the application is run, the searchbar is displayed at the BOTTOM of the results
When I click into the search area to perform a search, the searchbar then flicks to the top of the page
At first I thought "this is me", so I deleted the controller completely, including all code, and rebuilt from scratch the page in order to avoid any mistake I may have made. Unfortunately with the same result
The structure in IB is :
The controller code just does bare basic at the minute, just cellForRowAtIndexPath
Just add a prototype cell and put the search bar on top. You don't have to ever use the prototype cell.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With