iOS6 自适应旋转处理

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

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

2、iOS6以后旋转老是由view controller的根视图处理


3、iOS6以后还须要在plist配置文件中添加屏幕支持的旋转类型3d

相关文章
相关标签/搜索