Force an App into Landcape?

Discussion in 'iPad Hacking' started by handyjohnson, Apr 14, 2011.

  1. handyjohnson

    handyjohnson iPF Novice

    Joined:
    Oct 11, 2010
    Messages:
    13
    Thanks Received:
    0
    Trophy Points:
    0
    Ratings:
    +0 / 0
    Did a bit of searching for this but, if it's here, didn't get the right combination of terminology.

    There are a few apps that I use regularly that only run in portrait mode (grooveshark for instance) that I'd love to force into landscape even if meant having to "letterbox" the app with bars on the left on the right. Like an SBsettings toggle or something.

    It seems like it could be pretty functional. Swiping in the black bars on the left or right moved the entire app up and down. Swipe in the app itself and it behaves as normal.

    Has anyone run into something similar? I've searched cydia for "force landscape" - "landscape" and orientation but not seen anything similar.
     
  2. f4780y

    f4780y Super Moderator Staff Member

    Joined:
    Sep 11, 2010
    Messages:
    7,106
    Thanks Received:
    636
    Trophy Points:
    113
    Location:
    Troon, Scotland
    Ratings:
    +636 / 0
    Haven't come across anything myself...
    Actually, my pet hate is any app that forces landscape! I'm a portrait kind of guy...
     
  3. handyjohnson

    handyjohnson iPF Novice

    Joined:
    Oct 11, 2010
    Messages:
    13
    Thanks Received:
    0
    Trophy Points:
    0
    Ratings:
    +0 / 0
    I've got a case that only displays landscape when it's open on my desk, but I understand.

    Really an app like I'm describing could force either portrait into a landscape screen or vice versa so it could be useful to users of both persuasions, yours and mine.
     
  4. f4780y

    f4780y Super Moderator Staff Member

    Joined:
    Sep 11, 2010
    Messages:
    7,106
    Thanks Received:
    636
    Trophy Points:
    113
    Location:
    Troon, Scotland
    Ratings:
    +636 / 0
    Funny. My reason is the same. Moleskine digital folio case. Best in portrait! Hope you find something that works for you...
     
  5. young blade

    young blade iPF Novice

    Joined:
    Aug 20, 2010
    Messages:
    35
    Thanks Received:
    0
    Trophy Points:
    0
    Location:
    The Netherlands
    Ratings:
    +0 / 0
    I'm looking for a tweak that keeps the springboard in portrait..
    I'f anyone comes across anything let me know.. ;)
     
  6. DontUnderstandMyIpad

    DontUnderstandMyIpad iPad Guru

    Joined:
    Jan 22, 2011
    Messages:
    3,193
    Thanks Received:
    13
    Trophy Points:
    0
    Location:
    Outside my iPad, or was it inside?
    Ratings:
    +13 / 0
    Not sure, how one would approach this situation.

    So far, I had no luck forcing a certain orientation. I thought it might be enough to edit info.plist by adding the following:
    <key>UIInterfaceOrientation</key>
    <string>UIInterfaceOrientationLandscapeRight</string>
    and then adjust
    <key>UISuportedInterfaceOrientations<\key>
    <array>
    <string>...<\string>

    However, the app still starts in Portrait mode. It looks, as if there is some other trigger involved. Removing the portrait orientations under the Orientations array doesn't have any effect either.

    By doing the above does the app start always in Portrait mode, and it even turns the top bar, but it doesn't stay in that orientation for long. After a second or so, does it auto orient again.

    Are there other files, beside the plist which are involved in the orientation?

    Does anyone know, how to use 'shouldAutorotateToInterfaceOrientation'?
     
    Last edited: Apr 15, 2011
  7. graywolf

    graywolf iPad Super Guru

    Joined:
    Aug 22, 2010
    Messages:
    3,652
    Thanks Received:
    35
    Trophy Points:
    0
    Location:
    Raleigh, NC USA
    Ratings:
    +35 / 0
    The app has to have an interface for landscape. So if you look at the pics in the app folder you can see one called "default-portrait" or something to that effect. So the iPad won't rotate if it doesn't have a UI to use in landscape. Also the app itself has to have landscape functionality.
     
    Last edited: Apr 18, 2011
  8. graywolf

    graywolf iPad Super Guru

    Joined:
    Aug 22, 2010
    Messages:
    3,652
    Thanks Received:
    35
    Trophy Points:
    0
    Location:
    Raleigh, NC USA
    Ratings:
    +35 / 0
    Here is a pic
     

    Attached Files:

Share This Page

Search tags for this page

cydia force landscape

,
cydia rotate any app
,
force apps to portrait cydia
,
force ipad app landscape
,
force iphone screen rotation
,
force landscape cydia
,
force landscape jailbreak
,
how to force landscape cydia
,
ipad force landscape
,
jailbreak force landscape