@Tom,
Of course that’s not everything. Here’s everything (minus a few bits that are not iOS-rotation-related; it can build without the omitted bits).
settings =
{
orientation =
{
default = "landscapeRight",
supported =
{
"landscapeRight",
"landscapeLeft"
},
},
iphone =
{
plist =
{
components = {},
CFBundleVersion = "66",
CFBundleIdentifier = "com.playgearz.toss",
CFBundleIconFile = "Icon.png",
CFBundleIconFiles = {
"Icon.png" ,
"Icon@2x.png" ,
"Icon-72.png" ,
"Icon-Small.png" ,
"Icon-Small-50.png" ,
"Icon-Small@2x.png"
},
UIInterfaceOrientation = "UIInterfaceOrientationLandscapeRight",
UISupportedInterfaceOrientations = {
"UIInterfaceOrientationLandscapeRight",
"UIInterfaceOrientationLandscapeLeft"
},
UIApplicationExitsOnSuspend = false,
UIStatusBarHidden = true
},
}
}
settings.iphone.plist["UIInterfaceOrientation~ipad"] = "UIInterfaceOrientationLandscapeLeft"
settings.iphone.plist["UISupportedInterfaceOrientations~ipad"] =
{
"UIInterfaceOrientationLandscapeRight",
"UIInterfaceOrientationLandscapeLeft"
}
I replaced the orientation part with…
orientation = {
default = "landscapeRight",
content = "landscapeRight",
supported = { "landscapeRight", "portrait" },
},
…and it made everything rotate into portrait.
Note that I did not change the UISupportedInterfaceOrientations or settings.iphone.plist[“UISupportedInterfaceOrientations~ipad”] parts, just the “orientation” section. Changing just the “orientation” section, by itself, made non-native content rotate into portrait. (It also prevented the content from rotating into landscapeLeft, but that was expected.)
As with Stephen, we need this to work for landscapeLeft and landscapeRight - but first we need this to work, period, and it does not. [import]uid: 105445 topic_id: 31056 reply_id: 126328[/import]