关于横屏应用中插入个别竖屏view问题 求大神指点

Laber1314 Laber1314 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
如果我在工程设置只能横屏

但是项目需要一到两个竖屏
那可不可以单独设置一个竖屏的view或者

-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationPortrait;
}

- (BOOL)shouldAutorotate
{
return YES;
}
这样设置没有效果 还报错

Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'
...全文

相关推荐

评论 11
收藏 已收藏
分享
返回顶部
Laber1314
iOS 29,038 成员 12,459 内容