我的應用程序基於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? –