Hi,
I’m developing (just trying right now) an app for iphone and ipad. I want to show the app always in portrait orientation in the iphone and in landscape mode in the ipad.
How can I get it?
Thanks!!!
Hi,
I’m developing (just trying right now) an app for iphone and ipad. I want to show the app always in portrait orientation in the iphone and in landscape mode in the ipad.
How can I get it?
Thanks!!!
You would have to lock the orientation in your build.settings
orientation =
{
default = “portrait”,
supported = { “portrait” }
},
Then detect using system.getInfo() if you’re on an iPad or not and then hand rotate everything when you’re on the iPad. The other thing is to skip a Universal build and produce separate iPad and iPhone apps.
If I detect that the device is an ipad and then hand rotate everything on iPad, how can I see the status bar and native keyboard? Can I rotate these elements too?
You would have to lock the orientation in your build.settings
orientation =
{
default = “portrait”,
supported = { “portrait” }
},
Then detect using system.getInfo() if you’re on an iPad or not and then hand rotate everything when you’re on the iPad. The other thing is to skip a Universal build and produce separate iPad and iPhone apps.
If I detect that the device is an ipad and then hand rotate everything on iPad, how can I see the status bar and native keyboard? Can I rotate these elements too?