iOS 7 - UITableViewController with search is under status bar

datinc picture datinc · Sep 11, 2013 · Viewed 13.7k times · Source

I have a UITableViewController with an imbedded UISearchDisplayController. In iOS 7 the search box is under the status bar. Is there a way in interface builder to offset the tableview so that the search bar is not covered by the status bar (and still use the UITableViewController and UISearchDisplayController setup)?

Answer

Filippo picture Filippo · Sep 21, 2013
self.edgesForExtendedLayout=UIRectEdgeNone;

should fix this issue.