【发布时间】:2017-07-05 21:37:08
【问题描述】:
我已将设备方向设置为在 Xcode 中仅检查“纵向”。 但是,当我在模拟器中运行我的应用程序时,它会向所有方向旋转。
Showing correctly in Portrait (intended) and Landscape (not intended)
以前有人遇到过同样的问题吗? 谢谢
【问题讨论】:
-
检查您的
info.plist中的支持的界面方向 值 -
我已经在我的
info.plistUISupportedInterfaceOrientations 中包含了以下内容UIInterfaceOrientationPortrait -
我遇到了同样的问题。
info.plist也不错,运气好吗? -
同样的问题。有人找到原因了吗?
-
同样的问题!这是 Xcode 和/或 swiftUI 的错误。我们对 Apple 的期望远不止这些垃圾!!
标签: ios objective-c iphone xcode orientation