我希望我的应用能够支持iPhone上的颠倒方向。这适用于iOS 5,但我很难在iOS 6上运行。
Apple的文档提到默认支持的方向是iPad上的所有内容,以及除之外的所有内容在iPhone上都是颠倒的。我想支持两者的一切;我个人遇到了标准肖像模式中的电线阻碍的情况,并且不想随意决定我的用户如果他们遇到类似的问题就不能使用该应用程序。
这是我到目前为止所做的:
shouldAutorotateToInterfaceOrientation;
返回所有方向的YES
,如iOS 5所示。(我也试过评论这个视图控制器的shouldAutorotateToInterfaceOrientation:
,因为iOS 6的可能性很小根据其存在做出决定。它没有帮助。)supportedInterfaceOrientations
返回UIInterfaceOrientationMaskAll
。application:supportedInterfaceOrientationsForWindow:
返回UIInterfaceOrientationMaskAll
。我错过了什么?