Supported orientations has no common orientation with the application crash bug on iPad
来源:互联网 发布:淘宝卖家回复语大全 编辑:程序博客网 时间:2024/05/22 23:41
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
- Supported orientations has no common orientation with the application crash bug on iPad
- 问题 Supported orientations has no common orientation with the application 解决方案
- Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has mult
- Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has mult
- Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has mult
- No orientation specified, and the default is horizontal. This is a common source of bugs when ...
- No orientation specified, and the default is horizontal. This is a common so
- No orientation specified, and the default is horizontal. This is a common source of bugs
- Analyzing Linux kernel crash dumps with crash - The one tutorial that has it all
- Analyzing Linux kernel crash dumps with crash - The one tutorial that has it all
- iOS旋转bug preferredInterfaceOrientationForPresentation must return a supported interface orientation
- The account xxxxx has no team with ID xxxxxx
- 布局文件提示错误“No orientation specified, and the default is horizontal. This is a common so...”
- No orientation specified, and the default is horizontal. This is a common source of bugs when chil
- No orientation specified, and the default is horizontal. This is a common source of bugs when childr
- 布局文件提示错误“No orientation specified, and the default is horizontal. This is a common so...”
- 布局文件提示错误“No orientation specified, and the default is horizontal. This is a common so...”
- No orientation specified, and the default is horizontal. This is a common source of bugs when childr
- url重写
- 百度地图API详解之驾车导航
- 欧拉路径问题【poj 1637 Sightseeing tour】
- 百度地图API详解之地图操作
- 百度地图API详解之自定义地图类型
- Supported orientations has no common orientation with the application crash bug on iPad
- 百度地图API详解之坐标系转换
- GIS属性数据高效显示
- 百度地图API详解之公交导航
- 杭电ACM 2034 人见人爱A-B
- 最优二叉树&&哈夫曼编码
- URI encode与URL encode对空格的不同处理
- ZooKeeper编程
- PKU 2528 WA