I’m building a universal app that needs to support all orientations on iPad but only portrait orientation on iPhone.
In XCode, I’ve set it as such, but the app is still supporting all orientations on iPhone. I’m not sure if this is because Corona’s build.settings (which don’t seem to allow device-specific orientation settings) are overriding the XCode settings, or something else.
There seems to be a couple old forum posts which reference the following syntax:
settings.iphone.plist[“UIInterfaceOrientation~ipad”] = “UIInterfaceOrientationPortrait”
settings.iphone.plist[“UISupportedInterfaceOrientations~ipad”] =
{ “UIInterfaceOrientationPortrait”,“UIInterfaceOrientationPortraitUpsideDown” }
but those just seem to be manually setting the plist, which I’ve already done in Xcode, and I’m not sure if that syntax is supported by Corona anymore either.
Also, another old forum post by Rob suggested building separate versions of the app, but unfortunately that just isn’t a possibility since the app is paid.
Any help with this would be greatly appreciated!