You must Login before you can answer or comment on any questions.
Hello everyone. I'm about ready to publish a new version of our app to the iTunes market and there is one bug I'm trying to resolve. On SDK version 1.7.2, the app forces a switch to portrait mode if the device is already in landscape mode. It does not do this in version 1.7.1, but there are other issues caused by version 1.7.1. Is there a way I can fix this issue by specifying orientation in code?
Are you trying to force orientation to Portrait, or just wanting orientation to match the device's orientation?
I saw the below post recently where someone was having problems forcing orientation on 1.7.2...
Also, does your Tiapp.xml still retain all 4 orientation entries for iPad?
You can force the orientation of your app with:
Ti.UI.orientation = TI.UI.LANDSCAPE_LEFT;
or whichever orientation you prefer.
As Anthony mentioned you have to mention that specifically on the first Window like this
win.orientationModes = [Titanium.UI.PORTRAIT, Titanium.UI.UPSIDE_PORTRAIT, Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT, Titanium.UI.FACE_UP, Titanium.UI.FACE_DOWN]as a result of which it will support all orientation modes(guess that was what you were expecting to perform).
Think you can help? Login to answer this question!