在iPad上横向启动后iphone应用程序没有响应 [英] iphone app doesn't respond after starting in landscape orientation on iPad

查看:205
本文介绍了在iPad上横向启动后iphone应用程序没有响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在横向模式下在iPad上启动时,我的iPhone应用程序无响应。

My iPhone app doesn't respond when launched on an iPad in landscape mode.

如果以纵向模式启动,一切正常。在横向方向上,在旋转应用程序或按下1x 2x按钮之前无效。

If it launches in portrait mode everything works fine. In landscape orientation nothing works until the app is rotated or the 1x 2x button is pressed.

我尝试使用断点调试应用程序并单步执行代码但显示应用程序在调试控制台中正常运行。

I've tried debugging the app with breakpoints and stepping through the code but it shows that the app is running normally in the debug console.

推荐答案

我发现这是iOS 6设备所独有的,但如果你删除应用程序的plist中支持的界面方向下的所有条目,这个问题就消失了。或者,如果您在目标设置的摘要屏幕上选中状态栏设置中的在应用程序启动期间隐藏选项,这也会修复它:

I have found that this is unique to iOS 6 devices, but if you remove all of the entries under "Supported interface orientation" in the app's plist, this problem goes away. Or if you check the "Hide during application launch" option for the "Status Bar" settings on the Summary screen of the Target settings, this also fixes it:

我没有合理的理由看到这些选项中的任何一个修复此错误,但它们都可以。

There's no logical reason that I can see that either of these options should fix this bug, but they both do.

如果您在iOS 6中使用支持的方向设置,您仍然可以通过 supportedInterfaceOrientations (或者在iOS 5中,你仍然可以使用 shouldAutorotateToInterfaceOrientation: method)。

If you play around with the supported orientation settings in iOS 6, you can still programmatically control the permitted interface orientations via supportedInterfaceOrientations (or in iOS 5, you can still use theshouldAutorotateToInterfaceOrientation: method).

这篇关于在iPad上横向启动后iphone应用程序没有响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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