首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Xcode9.3 supportedInterfaceOrientations运行不正确

Xcode9.3 supportedInterfaceOrientations运行不正确
EN

Stack Overflow用户
提问于 2018-06-21 18:49:29
回答 1查看 67关注 0票数 1

我在Xcode9.2和Xcode9.3中运行代码时没有做任何更改。显然,设备方向在Xcode9.3中运行不正确。调用了SupportedInterfaceOrientations,但设备仍旋转为纵向。有人能帮上忙吗?

代码语言:javascript
复制
- (BOOL)shouldAutorotate
{
    return YES;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskLandscape;
}
EN

回答 1

Stack Overflow用户

发布于 2018-11-09 22:49:45

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50966674

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档