Is it possible for an app to launch in portrait if it’s an iPhone and in landscape if it’s an iPad?
Thanks!
Is it possible for an app to launch in portrait if it’s an iPhone and in landscape if it’s an iPad?
Thanks!
sure it is (somehow), but as far as i know not via your build settings, it needs a bit of tweaking.
for the default screen its easy:
as the default pngs are different ones you just design them these ways.
for the rest i’d do it as in this thread suggested, plus adding an if clause for checking which device is used around that:
http://forums.coronalabs.com/topic/5827-forced-orientation-portrait-to-landscape-and-back/
i mean, landscape and portrait essentialy just swap the stagewidth and stageheight and rotate the whole thing. everything pretty easy to calculate and foresee.
sure it is (somehow), but as far as i know not via your build settings, it needs a bit of tweaking.
for the default screen its easy:
as the default pngs are different ones you just design them these ways.
for the rest i’d do it as in this thread suggested, plus adding an if clause for checking which device is used around that:
http://forums.coronalabs.com/topic/5827-forced-orientation-portrait-to-landscape-and-back/
i mean, landscape and portrait essentialy just swap the stagewidth and stageheight and rotate the whole thing. everything pretty easy to calculate and foresee.