首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ios 6 supportedInterfaceOrientations

ios 6 supportedInterfaceOrientations
EN

Stack Overflow用户
提问于 2012-11-29 02:54:00
回答 1查看 677关注 0票数 0

在我的apilicacion中,使用以下方法进行旋转:

代码语言:javascript
复制
- (NSUInteger) {supportedInterfaceOrientations
    return UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;
}

但是当加载下一个视图时

代码语言:javascript
复制
 View2 *Cambio =[[View2 alloc]initWithNibName:Nil bundle:Nil];
 Cambio.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
 [self presentViewController:Cambio animated:NO completion:^{/* done */}];

但这会自动旋转到UIInterfaceOrientationMaskLandscapeRight to UIInterfaceOrientationMaskLandscapeLeft

有什么想法吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-11-29 04:48:25

也许你可以试试

代码语言:javascript
复制
-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return UIInterfaceOrientationLandscapeRight;
}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13612362

复制
相关文章

相似问题

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