I’m having an issue related to this. I have an app that needs to be in landscape mode on iPad and portrait mode on iPhone. Using the code below I can get the iPad version to show the content in the correct orientation but the simulator always starts in portrait mode and the X, Y axis default to portrait mode. Basically, the iPad content is aligned as if it was on portrait mode instead of landscape mode. Is there any way to solve this?
Thanks,
Andre
build.settings
[lua]settings =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”,
“portraitUpsideDown”,
“landscapeRight”,
“landscapeLeft”
},
},
iphone =
{
plist =
{
UIInterfaceOrientation = “UIInterfaceOrientationPortrait”,
UISupportedInterfaceOrientations =
{
“UIInterfaceOrientationPortrait”,
“UIInterfaceOrientationPortraitUpsideDown”
},
UIApplicationExitsOnSuspend = false,
UIStatusBarHidden = true,
UIPrerenderedIcon = true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles =
{
“Icon.png”,
“Icon@2x.png”,
“Icon-Small@2x.png”,
“Icon-72.png”,
“Icon-Small-50.png”,
“Icon-Small.png”,
“Icon-64.png”,
“Icon-32.png”,
“Icon-24.png”,
“Icon-16.png”
},
UIAppFonts =
{
“assets/fonts/HelveticaNeueLTPro-Bd.ttf”,
“assets/fonts/HelveticaNeueLTPro-Roman.ttf”,
},
}
}
}
settings.iphone.plist[“UIInterfaceOrientation~ipad”] = “UIInterfaceOrientationLandscapeRight”
settings.iphone.plist[“UISupportedInterfaceOrientations~ipad”] =
{
“UIInterfaceOrientationLandscapeRight”,
“UIInterfaceOrientationLandscapeLeft”
}[/lua]
config.lua
[lua]application =
{
content =
{
width = 1024,
height = 768,
scale = “none”,
},
}[/lua] [import]uid: 10048 topic_id: 7366 reply_id: 45513[/import]