【发布时间】:2012-09-06 10:34:03
【问题描述】:
在iOS 6.0中如何使用以下方法支持界面定向:
shouldAutorotate
supportedInterfaceOrientations
preferredInterfaceOrientationForPresentation
由于“shouldAutorotateToInterfaceOrientation”在 iOS 6.0 中已弃用。
请提供代码 sn-ps 以支持您的答案。
谢谢。
【问题讨论】:
-
您可以在此处查看支持 iOS 6 和 iOS 5 轮换的解决方案:stackoverflow.com/questions/12396545/…
-
在这里查看我的解决方案:stackoverflow.com/questions/12662240/…
-
感谢您提出这个问题!一段时间以来,我一直在努力解决这个问题,因为事情并没有按照应有的方式进行。
-
顺便说一句,如果任何答案对您有帮助,您应该考虑将其标记为答案。最好的问候。
标签: iphone ios xcode ipad ios6