Keep iPad App From Changing to Landscape
My iPad app works in portrait mode but not landscape. How do I make sure it doesn't switch when the iPod is turned. Right now it does switch and the bottom part gets cut off.
2 Answers
-
I think you can just set :
win.orientationModes = [ Titanium.UI.PORTRAIT ];
and that should lock it to PORTRAIT only.
(though it would be a good idea to 'listen' for an orientation change and adjust the layout accordingly in your app - I think I read somewhere about Apple preferring that your iPad apps can do this)
hth
-
Orientation on iPad has a few issues. There's a ticket on it and I know the guys are already working n it.