将iPad状态栏方向修复为纵向 [英] Fix iPad status bar orientation as portrait

查看:118
本文介绍了将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.

这篇关于将iPad状态栏方向修复为纵向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆