如何确保不支持UIInterfaceOrientationPortraitRight和UIInterfaceOrientationPortraitLeft。
基本上我希望我的应用程序仅用于UIInterfaceOrientationLandscapeRight和UIInterfaceOrientationLandscapeLeft
我编辑了Info.plist文件
<string>MainWindow</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
答案 0 :(得分:4)
确保在UIViewController
中的每个UITabBarController
/ shouldAutoRotateToInterfaceOrientation
等中,返回显示return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight))
;。