SearchBar in Navigation Bar in iOS7

↘锁芯ラ 提交于 2019-12-04 21:26:53

I'm running into the same issue. Everything works fine if I add the searchbar to the tableHeaderView with self.tableView.tableHeaderView = mySearchBar;

Found out something interesting: the source-tableview doesn't resize properly, so it is overlaying the results-tableview.

My app is universal. If I run it on iPad the source-tableview is covered completely, so I don't see the results-tableview. But on the iPhone it looks like this:

I was having the same issue as Morpheus, and it was due to having self.edgesForExtendedLayout = UIRectEdgeNone; in my viewDidLoad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!