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
相关文章推荐
- Warning:The `android.dexOptions.incremental` property is deprecated and it has no effect on the buil
- Analyzing Linux kernel crash dumps with crash - The one tutorial that has it all
- The account xxxxx has no team with ID xxxxxx
- keyboard splitting bug on ipad with ios 5 and 6 (Cocos2d-x)
- No orientation specified, and the default is horizontal. This is a common source of bugs when ...
- An error has occured on the server. For details please check the Event (Application) log on the web server.
- 安装好eVC4后,打开eVC时提示:Microsoft eMbedded Visual C++ has discovered no CE platform SDK installed on the d
- The `android.dexOptions.incremental` property is deprecated and it has no effect on the build proces
- Wrong orientation? No orientation specified, and the default is horizontal, yet this layout has mult
- Warning:The `android.dexOptions.incremental` property is deprecated and it has no effect on the buil
- 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...”
- "EIPAbstractError" exception with "No peer with the interface with guid [...] has been registered".
- Warning:The `android.dexOptions.incremental` property is deprecated and it has no effect on the buil
- Analyzing Linux kernel crash dumps with crash - The one tutorial that has it all
- Warning:The `android.dexOptions.incremental` property is deprecated and it has no effect on the buil
- Xcode7.2真机测试问题"The account 'appleID ' has no team with ID ‘’
- 布局文件提示错误“No orientation specified, and the default is horizontal. This is a common so...”
- ORA-600 [KFDAUDEALLOC2] AND INSTANCE CRASH EVEN WITH THE FIX OF BUG 14467061 (文档 ID 1903273.1)
- 【Java-bug】No enclosing instance of type Test is accessible. Must qualify the allocation with an encl