Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 7 - UITableViewController with search is under status bar

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)?

like image 527
datinc Avatar asked Sep 11 '13 16:09

datinc


2 Answers

self.edgesForExtendedLayout=UIRectEdgeNone;

should fix this issue.

like image 79
Filippo Avatar answered Oct 09 '22 17:10

Filippo


You would have to embed it in a UINavigationController, then in the navVC, simply uncheck the Shows Navigation Bar enter image description here

like image 26
Kyle Fang Avatar answered Oct 09 '22 17:10

Kyle Fang