iPhone - 即使应用程序仅支持纵向,状态栏也会旋转
我正在开发一个仅支持纵向方向的 iPhone 应用程序。 在我的设备上一切正常,但在我的测试仪上状态栏自动旋转到横向。视图的其余部分仍保持纵向模式。
我的测试仪的设备规格如下: - iPhone 4 - 版本 4.2.8
我无法在我的设备(iPhone 4、4.3.3)上重现此错误。
谢谢!
I am developing an iPhone application that supports only Portrait orientation.
On my device everything works OK, but on my tester's the status bar is autorotating to landscape orientation. The rest of the view remains in Portrait mode.
My tester's device specs are these:
- iPhone 4
- Ver 4.2.8
I couldn't reproduce this error on my device (iPhone 4, 4.3.3).
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在所有 viewController.m 文件中添加以下函数。
在您的 info.plist 文件中添加以下键
初始界面方向
并将其值设置为“肖像(底部主页按钮)”
干杯。
Add below function in your all viewController.m files.
Add below key in your info.plist file
Initial interface orientation
And set it's value as "Portrait (bottom home button)"
Cheers.