我的应用程序基于Landscape
。应用在我的设备上运行时,该应用立即崩溃。应用程序由于InterfaceOrientation而崩溃
我选择了这两个领域
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight
我收到此错误:那些你想支持
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}
请一个更
Terminating app due to uncaught exception UIApplicationInvalidInterfaceOrientation, reason: Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES
您可以发布 – thavasidurai
http://stackoverflow.com/questions/13911080/how-to-launch-app-in-landscape-frustrated/13911169#13911169 –
你在视图中使用图片选择器的代码?你是否将其设置为rootview? –