您的位置:首页 > 移动开发

Supported orientations has no common orientation with the application crash bug on iPad

2013-01-03 17:03 696 查看


Supported
orientations has no common orientation with the application, and shouldAutorotate is returning YES'

在iOS 6中,iPad landscape模式下,popoverController的contentViewController设置为UIImagePickerController, popover弹出时会遇到上述crash问题。
一个可行的解决方法是:

添加如下Category:

@interface UIImagePickerController(Nonrotating)
- (BOOL)shouldAutorotate;
@end

@implementation UIImagePickerController(Nonrotating)

- (BOOL)shouldAutorotate {
return NO;
}


参考:http://stackoverflow.com/questions/12540597/supported-orientations-has-no-common-orientation-with-the-application-and-shoul?lq=1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐