Different orientations for iPhone and iPad

Hi all,

Was just wondering – I want to build a universal app but have the iPad in landscape while keeping iPhones in portrait.

Is this possible?
if so, has anyone got a code snippet etc?
Thanks!

Max Price [import]uid: 24641 topic_id: 32673 reply_id: 332673[/import]

You could check out the orientation demo in sample code in the CoronaSDK folder on your computer and check device on launch then rotate things, possibly? I’m not sure however that Apple would accept a universal app that is this different between devices. I’ve seen people rejected for it before although it does seem to be luck of the draw. (This was, I think, a bigger issue when the iPad first came out.) [import]uid: 52491 topic_id: 32673 reply_id: 129940[/import]

@mdcapps,

This won’t help you with the orientation, but if you do decide to experiment with different orientations (per-device) you may need to make further adjustments in config.lua to make everything look nice.

http://www.coronalabs.com/blog/2011/01/28/use-dynamic-layouts-in-universal-builds-with-corona-sdk/
[import]uid: 110228 topic_id: 32673 reply_id: 129951[/import]

You could check out the orientation demo in sample code in the CoronaSDK folder on your computer and check device on launch then rotate things, possibly? I’m not sure however that Apple would accept a universal app that is this different between devices. I’ve seen people rejected for it before although it does seem to be luck of the draw. (This was, I think, a bigger issue when the iPad first came out.) [import]uid: 52491 topic_id: 32673 reply_id: 129940[/import]

@mdcapps,

This won’t help you with the orientation, but if you do decide to experiment with different orientations (per-device) you may need to make further adjustments in config.lua to make everything look nice.

http://www.coronalabs.com/blog/2011/01/28/use-dynamic-layouts-in-universal-builds-with-corona-sdk/
[import]uid: 110228 topic_id: 32673 reply_id: 129951[/import]