views:

70

answers:

4

So after wasting many hours trying to get my app to run in landscape mode by defualt I'm looking for an alternative.

My idea is to create the app in portrait mode but rotate everything by 90 degrees, the player thinks that he is playing the game in landscape mode (when really I've just rotated everything). I recognise it will be a little awkward to develop but I come into all sorts of issues when I try to program for landscape.

My question is, does Apple frown upon this? Could they reject my app for any reason or is this safe to do? Are there any issues I should be aware of?

Advice/articles/help all appreciated.

A: 

There are reportedly immersive full screen Open GL games that hide the status bar and do this. Note that you will still need to detect and handle landscape-left and landscape-right rotations or your app might appear upside-down.

hotpaw2
That's good to know, thank you.
Andrew Davis
+1  A: 

I do not allow landscape mode in my applications and none of them have been rejected. Sometimes an application does not benefit from being in landscape mode.

EDIT: The same also goes for portrait mode. If your app makes sense only in one orientation or the other, Apple will not reject you.

MrAnonymous
Because of the nature of the app, it has to be viewed in landscape. If I could avoid it, I would.
Andrew Davis
Sorry--I forgot to say the same goes for portrait: sometimes an app does not belong in portrait mode. You will not be rejected because of it.
MrAnonymous
A: 

Just set an affine transform on your top-level view, and be careful to always use the correct coordinate system.

David M.
+1  A: 

There is a key you can put into your Info.plist to make it start in landscape (see here). Or have you already tried that?

Brian