Hi folks, hope you can help me.
I want to configure the orientation for both ipod and ipad in build.settings. What I want to achieve is that, on iPads, all the orientation modes are enabled and on an iPhone I only allow portrait mode.
Here’s what I came up with:
settings.iphone.plist[“UIInterfaceOrientation~iphone”] = “UIInterfaceOrientationPortrait”
settings.iphone.plist[“UISupportedInterfaceOrientations~iphone”] =
{
“UIInterfaceOrientationPortrait”,
}
settings.iphone.plist[“UIInterfaceOrientation~ipad”] = “UIInterfaceOrientationPortrait”
settings.iphone.plist[“UISupportedInterfaceOrientations~ipad”] =
{
“UIInterfaceOrientationPortrait”,
“UIInterfaceOrientationPortraitUpsideDown”,
“UIInterfaceOrientationPortraitLandscapeLeft”,
“UIInterfaceOrientationPortraitLandscapeRight”,
}
This results in portrait only mode on my iPad. Why? I clearly state that i allow all orientations. I appreciate your help.
Thanks,
~Rob