iOS6 自适应旋转处理

一、iOS6之后UIViewController 旋转处理
1、view controller 是否支持自动旋转
- (BOOL)shouldAutorotate;
2、view controller 支持哪几种
- (NSUInteger)supportedInterfaceOrientations;

在UIApplication中定义了屏幕方向相关的枚举
UIInterfaceOrientationMask枚举类型 定义了支持的屏幕类型
UIInterfaceOrientation枚举类型 定义了屏幕类型

二、iOS6之后旋转总是由view controller的根视图处理


三、iOS6之后还需要在plist配置文件中添加屏幕支持的旋转类型

原文地址:https://www.cnblogs.com/shuleihen/p/3983967.html