Xcode不遵守设备方向
问题描述:
我已经将设备方向设置为仅在Xcode中检查了“肖像”。 但是,当我在模拟器中运行我的应用程序时,它会在所有方向上旋转。Xcode不遵守设备方向
Showing correctly in Portrait (intended) and Landscape (not intended)
之前,任何人都面临着同样的问题? 谢谢
答
Xcode中的“常规” - >“部署信息”UI可能是骗人的。检查这两个键在您的info.plist:
UISupportedInterfaceOrientations
和
UISupportedInterfaceOrientations~ipad
+0
我遇到同样的问题,我的只显示'肖像(底部主页按钮)' – MattyK14
检查_配套接口orientations_在'info.plist' –
i值已经包含在我的'info.plist' \t UISupportedInterfaceOrientations \t \t \t UIInterfaceOrientationPortrait \t –
Jeung
以下我有同样的问题。 'info.plist'也不错,运气好吗? – MattyK14