我正在开发一个仅支持横屏的应用程序。它使用UIImagePickerController
从库中选择图像和/或视频。在 iOS-5 或之前版本的应用程序中功能正常,但当我尝试呈现图像选择器控制器时,它会崩溃。崩溃后出现以下消息:
* 应用程序终止由于未捕获的异常 'UIApplicationInvalidInterfaceOrientation',原因是:'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'