开发者

UISearchBar with hidden UINavigationBar

开发者 https://www.devze.com 2022-12-18 03:23 出处:网络
I have the search bar in the top of the table and the hidden navigation bar. Along with UISearchBar I use UISearchDisplayController. UISearchDisplayController has the possibility to bring for开发者_Go

I have the search bar in the top of the table and the hidden navigation bar. Along with UISearchBar I use UISearchDisplayController. UISearchDisplayController has the possibility to bring for开发者_Go百科ward the navigation bar. So, when I tap the cancel button in the search bar, the navigation bar fly's down. How can I dismiss this possibility, so the navigation bar will always be hidden?

Thanks


One solution is to make the search bar the table header view in which case it will scroll with the table, and if you don't want it to appear by default then you can programmatically scroll the table down, non-animated, in viewWillAppear it is first displayed. This may or may not make sense for your UI design, but it is, for example, how Safari basically works.


Finnaly!!!! I've found the solution IPHONE: ABPeoplePickerNavigationController hidden navigation bar

0

精彩评论

暂无评论...
验证码 换一张
取 消