Hi,
I’m trying to set my app to support three orientation (portrait and landscapes), however I want the Corona stage to always stay in the same (portrait) orientation, while the native elements (like the keyboard) rotate according to the orientation of the device.
From the docs it looks that to achieve that I need to add in the build settings something like this:
settings = { orientation = { default = "portrait", -- Initial launch orientation content = "portrait", -- Locked orientation of the Corona stage, independent of native UI elements (iOS only) supported = {"portrait","landscapeLeft","landscapeRight"}, -- Table of allowed options for auto-orientation }, }
In this way the orientation of the Corona stage should be fixed to portrait while the native UI rotates. The docs also state:
In iOS, you can optionally use the content key value to lock the Corona stage to a particular orientation. Native UI elements such as alerts or the visual keyboard will auto-orient, but the Corona display stage will remain locked. This is useful if you want to maintain a fixed coordinate system in an iOS app.
However, when I try on device the “content” parameter doesn’t seem to do anything… the Corona view is not locked to the portrait position but auto-rotates.
Am I doing something wrong? Or is that function broken?
Thanks
Note: I’m developing for iOS by the way, not Android.
