IOS6.0以后旋转的问题的处理
2013-03-20 16:10
429 查看
6.0以前用下面的这种方式
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
return (toInterfaceOrientation != UIInterfaceOrientationMaskPortraitUpsideDown);
}
6.0以后要追加一下方式
- (BOOL)shouldAutorotate
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskAllButUpsideDown;
}
UIInterfaceOrientationMaskLandscape 支持左右横屏
UIInterfaceOrientationMaskAll 支持四个方向旋转
UIInterfaceOrientationMaskAllButUpsideDown 支持除了UpsideDown以外的旋转
UIInterfaceOrientationPortrait 竖屏正常显示
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
{
return (toInterfaceOrientation != UIInterfaceOrientationMaskPortraitUpsideDown);
}
6.0以后要追加一下方式
- (BOOL)shouldAutorotate
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskAllButUpsideDown;
}
UIInterfaceOrientationMaskLandscape 支持左右横屏
UIInterfaceOrientationMaskAll 支持四个方向旋转
UIInterfaceOrientationMaskAllButUpsideDown 支持除了UpsideDown以外的旋转
UIInterfaceOrientationPortrait 竖屏正常显示
相关文章推荐
- IOS应用开发-图片处理(拉伸图片 创建缩略图 解决图片旋转的问题 图片编码及上传 将图片写入磁盘)
- ios6.0和6.0以下横竖屏幕转换问题处理
- ios6.0 UINavigationController、UITabBarController 支持屏幕自动旋转问题
- 转载 -- IOS成长之路-关于iOS6.0 屏幕旋转的问题
- IOS成长之路-关于iOS6.0 屏幕旋转的问题
- ios6.0与以前版本旋转兼容问题
- iOS6.0以后App对内存警告的处理
- 关于iOS6.0 屏幕旋转的问题
- 七牛IOS和数码相机竖排,图片旋转问题处理
- IOS6.0以后APP对内存警告的处理
- IOS应用开发-图片处理(拉伸图片 创建缩略图 解决图片旋转的问题 图片编码及上传 将图片写入磁盘)
- IOS6.0以后APP对内存警告的处理
- IOS6.0以后APP对内存警告的处理
- IOS6.0以后APP对内存警告的处理
- iOS6.0以后App对内存警告的处理
- iOS 5.1及6.0 屏幕旋转的兼容问题
- ios6.0旋转问题解决
- ios 6.0 屏幕旋转问题
- IOS成长之路-关于iOS6.0 屏幕旋转的问题
- IOS6.0以后APP对内存警告的处理