Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked April 15th 2010 by shawn gordhamer
  • ipad
  • orientation
0 Comments

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

    — answered April 15th 2010 by Kosso
    permalink
    0 Comments
  • Orientation on iPad has a few issues. There's a ticket on it and I know the guys are already working n it.

    — answered April 15th 2010 by Brendan Gallagher
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.