2017-02-16 84 views
2

我已经将设备方向设置为仅在Xcode中检查了“肖像”。 但是,当我在模拟器中运行我的应用程序时,它会在所有方向上旋转。Xcode不遵守设备方向

My Xcode setting

Showing correctly in Portrait (intended) and Landscape (not intended)

之前,任何人都面临着同样的问题? 谢谢

+1

检查_配套接口orientations_在'info.plist' –

+0

i值已经包含在我的'info.plist' \t UISupportedInterfaceOrientations \t \t \t UIInterfaceOrientationPortrait \t Jeung

+0

以下我有同样的问题。 'info.plist'也不错,运气好吗? – MattyK14

回答

1

Xcode中的“常规” - >“部署信息”UI可能是骗人的。检查这两个键在您的info.plist:

UISupportedInterfaceOrientations

UISupportedInterfaceOrientations~ipad

+0

我遇到同样的问题,我的只显示'肖像(底部主页按钮)' – MattyK14

1

我有同样的问题(物理设备)。在iPhone上它工作正常,但在iPad上不起作用。解决方案是调整“设备”的选项,在这种情况下,“景观权”。 Landscape Right checkbox checked under Device Orientation below Deployment Info