【问题标题】:Please explain me why apple add UIInterfaceOrientationUnknown to UIInterfaceOrientation请解释一下为什么苹果将 UIInterfaceOrientationUnknown 添加到 UIInterfaceOrientation
【发布时间】:2014-11-27 15:21:25
【问题描述】:

请谁能解释一下为什么我们需要 UIInterfaceOrientation? 我的代码中有这个问题。当我在模拟器上模拟我的应用程序时,我有这个方向(只有一次)。我不知道如何修复它......

【问题讨论】:

  • 不太清楚你的意思。你能提供一些代码吗?
  • 也许只是因为一个好的做法,在设置任何其他默认值之前

标签: ios objective-c xcode ios8 orientation


【解决方案1】:

基于来自https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIApplication_Class/index.html#//apple_ref/c/econst/UIInterfaceOrientationUnknown的文档

UIInterfaceOrientationUnknow 是在 iOS 8 上添加的。我不太确定原因。也许这与屏幕尺寸有关?或者我认为是屏幕转换期间的状态。

【讨论】:

  • 感谢编辑。以后会更加小心。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-02-17
  • 1970-01-01
  • 2013-04-03
  • 2020-01-13
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多