UISearchDisplayController on iOS7

我的未来我决定 提交于 2019-12-13 02:47:43

问题


I'm having a very annoing problem on iOS7. I have a VC with different subviews, one is a tableview that is display fullscreen after pressing a button. This tableview has a search bar with a scope bar in its header that is linked to a search display controller.
On iOS 6 everything runs fine, when I press on the search bar the scope bar is displayed and the rows correctly slide at the bottom as you can see in the images (forget about the big X).


On iOS7 I have a problem.
Everything seems OK(and it's under the status but I know how to fix that).


But when I start a search the layout change leaving some blank space at the top, this doesn't happen on iOS6.


How can I solve that? where this problem comes from?
Andrea


回答1:


It looks like your search results are pushed down by the status bar height. Try fixing your header position (so it's not under the status bar) and see if that works. If not, you'll need to share some code to show how your layouts are constructed.



来源:https://stackoverflow.com/questions/19121162/uisearchdisplaycontroller-on-ios7

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