IOS某个ViewController禁止自动旋转
2014-08-15 17:19
585 查看
IOS屏幕自动旋转,强制横竖屏方法:
- (BOOL)shouldAutorotate { return YES; } - (NSUInteger)supportedInterfaceOrientations { return (UIInterfaceOrientationMaskAll);// 修改这里 控制显示方向 } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationPortrait); }
相关文章推荐
- IOS某个ViewController禁止自动旋转
- iOS 开发,屏幕旋转、旋转屏幕collectionView cell 的自动布局问题
- iOS 归档UIImageView后,再解档,imageview的图片出现自动旋转
- ios6.0 UINavigationController、UITabBarController 支持屏幕自动旋转问题
- IOS TabBarController中是否允许单个viewController旋转屏幕
- ios中关于UIPageViewController边缘自动翻页去除的问题
- iOS 的Viewcontroller只支持一个屏幕方向,弹出不同方向,旋转
- ios webview禁止自动识别日期 未解决 AAA
- IOS---自动初始化各个ViewController(可用于UITableView中的跳转)
- ios6.0之后单个屏幕旋转,不用根视图以及Application windows are expected to have a root view controller at the end of
- iOS开发:避免MPMoviePlayerViewController播放完毕后自动dismiss,进入后台自动dismiss - Azure_Sagi
- iOS UIViewController 无法关闭自动旋屏(自动旋转、手动旋转、兼容IOS6之前系统)
- iOS presentedViewController 单屏幕旋转整理
- iOS系统自带的 **UIAlertView** 以及 屏幕自动旋转的实现
- [iOS]技巧集锦:UICollectionView在旋转屏幕后Cell中的约束不起作用或自动布局失效
- IOS view 自动旋转
- ios中关于UIPageViewController边缘自动翻页去除的问题
- iOS 设置某个ViewController可以旋转
- iOS开发:避免MPMoviePlayerViewController播放完毕后自动dismiss,进入后台自动dismiss
- iosUIpageViewController转屏后里面的子视图没有跟着一起旋转