将iPad状态栏方向修复为纵向
问题描述:
我有一个带有简单标签栏的iPad应用程序。我需要将方向修改为肖像。我通过在plist文件的支持的界面方向字段中设置纵向(底部主页按钮)来实现。
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.
问题是旋转iPad时状态栏仍然移动...我该如何解决?
The problem is that the status bar still move when rotating the iPad... how can I fix it ??
感谢您阅读。
答
删除的默认实现shouldAutorotateToInterfaceOrientation:
来自所有视图控制器。
Remove the default implementation of shouldAutorotateToInterfaceOrientation:
from all your view controllers.