Orientation Crash: SDK 2.1.3 RC and iOS6

You must Login before you can answer or comment on any questions.

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.

— answered 8 months ago by Eric Merriman
answer permalink
2 Comments
  • Hi Eric. Thanks for your help!

    — commented 8 months ago by Vittorio Sorbera

  • Hello Eric. I noticed a new problem.... : ( In the simulator app no longer crashes after dismissing the email dialog, but in the device, if I delete the mail works fine, but when I try to send mail, the mail is not sent and the application goes in the background...

    — commented 8 months ago by Vittorio Sorbera

Your Answer

Think you can help? Login to answer this question!