【发布时间】: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