Build settings and runtime configuration were briefly discussed in Chapter 2, Lua Crash Course and the Corona Framework. Let's get into more specific details on handling a variety of devices on the iOS and Android platform.
There are a variety of ways to handle device orientation to match the settings your game design requires.
There are scenarios in which you want the native UI elements to autorotate, or to be oriented in a certain way, but you also want to maintain a fixed coordinate system within Corona.
To lock Corona's orientation while allowing native iPhone UI elements to rotate, add a content parameter in build.settings
as follows:
settings = { orientation = { default = "portrait", content = "portrait", supported = { "landscapeLeft", "landscapeRight", "portrait", "portraitUpsideDown", }, },...