【问题标题】:Xcode9.3 supportedInterfaceOrientations performs incorrectlyXcode9.3 supportedInterfaceOrientations 执行不正确
【发布时间】:2018-11-30 16:14:05
【问题描述】:

我运行我的代码,Xcode9.2 和 Xcode9.3 没有任何变化。显然,设备方向在 Xcode9.3 中执行不正确。 SupportedInterfaceOrientations 被调用,但设备仍旋转为纵向。任何人都可以帮忙吗?

- (BOOL)shouldAutorotate
{
    return YES;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskLandscape;
}

【问题讨论】:

    标签: ios orientation xcode9.2 xcode9.3


    【解决方案1】:

    检查 ViewControllers 层次结构。也许您有一些父或子视图控制器正在接受不同的旋转模式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-21
      • 1970-01-01
      相关资源
      最近更新 更多