IOS 7 设置某一个UIViewController横屏,其他坚屏的问题
2014-08-12 16:08
267 查看
1.先在plist文件设置支持的方向(可以在项目的general 里面勾选设置)
2.IOS7 与 ios6的横屏坚屏设置相同,但与ios5不一样,IOS5用shouldAutorotateToInterfaceOrientation方法,而ios6 ios7,用supportedInterfaceOrientations and/or shouldAutorotate 代替。
shouldAutorotate表示是否可以横竖屏
supportedInterfaceOrientations, preferredInterfaceOrientationForPresentation表示支持哪几种屏方向改变,支持多种时用“|”分隔。
备注:设置了shouldAutorotate为NO时,而某一页面supportedInterfaceOrientations和preferredInterfaceOrientationForPresentation支持多种时,从其他页面返回时屏的方向会与其他页面相同时(如果支持的话))
3.如果是用UItabViewControler ,UINavigationController包含UIViewController时要category,重写这几个方法,并返回当页页面的的这几个方法状态
2.IOS7 与 ios6的横屏坚屏设置相同,但与ios5不一样,IOS5用shouldAutorotateToInterfaceOrientation方法,而ios6 ios7,用supportedInterfaceOrientations and/or shouldAutorotate 代替。
shouldAutorotate表示是否可以横竖屏
supportedInterfaceOrientations, preferredInterfaceOrientationForPresentation表示支持哪几种屏方向改变,支持多种时用“|”分隔。
备注:设置了shouldAutorotate为NO时,而某一页面supportedInterfaceOrientations和preferredInterfaceOrientationForPresentation支持多种时,从其他页面返回时屏的方向会与其他页面相同时(如果支持的话))
3.如果是用UItabViewControler ,UINavigationController包含UIViewController时要category,重写这几个方法,并返回当页页面的的这几个方法状态
相关文章推荐
- IOS开发:一个关于UIPopoverController设置contentsize大小的问题
- iOS 取出RGB设置UIColor的RGB值, 有时为了跟其他控件一个主题色但是想改变一下透明度
- 【iOS-Cocos2d游戏开发之七】在cocos2d中添加/删除系统组件,并解决View设置透明会影响View中的其他组件的问题!更新解决添加组件Cocos2d动画停止播放的BUG】
- 问题-[Delphi]在对GRID设置单击为编辑时,其他GRID可以,但有一个GRID不行?
- 微信公众号平台网页授权接口中获取到的授权code传递给(即一个微信公众号网页授权给)任何其他多个回调域名下的url,解决了只能设置一个网页授权回调域名的问题,解决了redirect_uri参数错误的问
- 【iOS-Cocos2d游戏开发之七】添加/删除系统组件,并解决View设置透明会影响View中的其他组件的问题! 推荐
- iOS设置一个圆角button遇到的问题
- Qt creator工程项目移植时因环境变换造成qmake错误的解决方案 1.问题描述:移植从他机上的qt工程项目,打开时提示: Qt Creator找到了一个由其他开发环境创建的设置文件,或许
- iOS开发中屏幕旋转至一个方向后再手动设置屏幕旋转至该方向无效问题
- iOS开发中屏幕旋转至一个方向后再手动设置屏幕旋转至该方向无效问题
- iOS一个简单的设置圆角不引起性能问题的分类
- iOS 一个工程中引用其他工程时编译的Architecture问题
- 【iOS-Cocos2d游戏开发之七】在cocos2d中添加/删除系统组件,并解决View设置透明会影响View中的其他组件的问题!【11月28日更新解决添加组件Cocos2d动画停止播放的BUG】
- 【iOS-Cocos2d游戏开发之七】在cocos2d中添加/删除系统组件,并解决View设置透明会影响View中的其他组件的问题!【11月28日更新解决添加组件Cocos2d动画停止播放的BUG】
- 关于博客设置的一个问题:
- 一个字符串到数组的例子 - 回复"成红"的问题, 对其他朋友参考价值不大
- 关于Multilined TextBox的多行文本设置的一个小问题
- 一个简单的GridView设置复合表头问题。
- web编码问题 有乱码 应统一编码 设置一个filter
- 关于Windows Mobile 6 Professional Emulator中的一个串口设置小问题.