iPad orientation

Hi,

My app is running on iPhone in portrait mode. Now I am going to make it compitible with iPad. I want to know is it possible that when my app runs on iPad it starts in Landscape mode but when running on iPhone it should be in portrait. If I change the default orientation to Landscape in build.settings then it will change orientation for both iPhone and iPad to landscape which I don’t want to happen. So App has to decide on run time if it is iPhone or iPad and then start in landscape for iPad and portrait on iPhone. Is it possible to do that? I will be thankful for help.

Thanks

You have two choices:  1. determine at runtime if you’re an iPad or iPhone and then build your interface accordingly, or 2. Build separate apps.  Now the 2nd one doesn’t necessarily mean a totally different code base, but build an iPhone only app in Portrait, switch the build.settings to landscape and then build the iPad app.  I think you’re going to find either path has its own set of challenges and hurdles to overcome.

Rob

Thanks Rob. I understood the point.

You have two choices:  1. determine at runtime if you’re an iPad or iPhone and then build your interface accordingly, or 2. Build separate apps.  Now the 2nd one doesn’t necessarily mean a totally different code base, but build an iPhone only app in Portrait, switch the build.settings to landscape and then build the iPad app.  I think you’re going to find either path has its own set of challenges and hurdles to overcome.

Rob

Thanks Rob. I understood the point.