Creating device specific keys requires the following pattern:
key\_root-<platform>~<device>
However, the corona compiler does not like the ~ and crashes.
Here is an example of my usage that crashes corona compiler. Forcing landscape on iphone/ipod and forcing portrait on iPad:
[lua]settings =
{
orientation =
{
default = “portrait”,
supported =
{
“portrait”, “portraitUpsideDown”, “landscapeRight”, “landscapeLeft”
}
},
iphone =
{
plist =
{
UIInterfaceOrientation = “UIInterfaceOrientationLandscapeRight”,
UIInterfaceOrientation~ipad = “UIInterfaceOrientationPortrait”,
UISupportedInterfaceOrientations =
{
“UIInterfaceOrientationLandscapeLeft”,
“UIInterfaceOrientationLandscapeRight”
},
UISupportedInterfaceOrientations~ipad =
{
“UIInterfaceOrientationPortrait”,
“UIInterfaceOrientationPortraitUpsideDown”
},
UIApplicationExitsOnSuspend = true,
UIStatusBarHidden = true,
UIPrerenderedIcon = true
}
}
}[/lua] [import]uid: 9187 topic_id: 7378 reply_id: 307378[/import]