我有一个带有嵌入式 UISearchDisplayController 的 UITableViewController。在 iOS 7 中,搜索框位于状态栏下方。 interface builder 是否有办法偏移 tableview,以便搜索栏不被状态栏覆盖(并且仍然使用 UITableViewController 和 UISearchDisplayController 设置)?
最佳答案
self.edgesForExtendedLayout=UIRectEdgeNone;
应该可以解决这个问题。
关于iOS 7 - 带有搜索功能的 UITableViewController 在状态栏下,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18746718/