Hi. I have a problem with my application. When I open a window, the application must perform an autorotation forced from portrait to landscape. After that, if I tap on a button, I do a screen of the window and attach it to an email. When I open the window of the mail, the application must go back to portrait, but now, with iOS6, it crashes with this error:
Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'
1 Answer
Accepted Answer
Hello Vittorio, I attempted to reproduce this, and without any code or tiapp.xml details was able to get a scenario like yours to work. While it did not crash, we did encounter an issue with iOS 6 allowing the window (set to landscape-only) to rotate to portrait after dismissing the email dialog.
This was using: SDK 2.1.3.v20120928124610 (see http://builds.appcelerator.com.s3.amazonaws.com/index.html)
Xcode 4.5/iOS 6 target.
App running on iPhone 5 (iOS 6.0) and iPhone 4s (iOS 6.0)
This window rotation issue did not occur on iOS 5 devices tested.
Please review http://jira.appcelerator.org/browse/TIMOB-11213 and communicate via that bug if your code/tiapp.xml settings are different in some way.
Your Answer
Think you can help? Login to answer this question!