I’ve been reading this:
http://developer.anscamobile.com/content/configuring-projects#Build_Configuration:_build.settings
And it looks to me like the following build.settings file would configure the build to allow iphones to use portrait and portrait upside down but to allow ipad to use all four orientations.
Am I correct or is this not possible? Unfortunately, I’m without access to a Mac to build for device or XCode simulator…
In the Windows simulator it looks like the orientation list at the top defines all behaviour and nothing can override it.
[lua]settings =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”, “portraitUpsideDown”, “landscapeRight”, “landscapeLeft”
}
},
iphone =
{
plist =
{
UIInterfaceOrientation = “UIInterfaceOrientationPortrait”,
UISupportedInterfaceOrientations =
{
“UIInterfaceOrientationPortrait”,
“UIInterfaceOrientationPortraitUpsideDown”
},
UIApplicationExitsOnSuspend = true,
UIStatusBarHidden = true,
UIPrerenderedIcon = true
}
}
}
settings.iphone.plist[“UIInterfaceOrientation~ipad”] = “UIInterfaceOrientationPortrait”
settings.iphone.plist[“UISupportedInterfaceOrientations~ipad”] =
{
“UIInterfaceOrientationPortrait”,
“UIInterfaceOrientationPortraitUpsideDown”,
“UIInterfaceOrientationLandscapeLeft”,
“UIInterfaceOrientationLandscapeRight”,
}[/lua] [import]uid: 8271 topic_id: 26499 reply_id: 326499[/import]