Fix iPad status bar orientation as portrait

耗尽温柔 提交于 2019-12-11 10:12:52

问题


I have an iPad application with a simple tab bar. I need to fix the orientation as portrait. I do that by setting "Portrait (bottom home button)" in the "Supported interface orientation" field in the plist file.

The problem is that the status bar still move when rotating the iPad... how can I fix it ??

Thanks for reading.


回答1:


Remove the default implementation of shouldAutorotateToInterfaceOrientation: from all your view controllers.



来源:https://stackoverflow.com/questions/5140600/fix-ipad-status-bar-orientation-as-portrait

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