Trouble Getting Different Uiinterfaceorientation Schemes In Build.settings Working For Iphone And Ipad

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

I think the late hour is messing with my head. It’s a major typo (or copy-paste error) that caused the weird stuff and I overlooked it.

Thanks and good night!

I think the late hour is messing with my head. It’s a major typo (or copy-paste error) that caused the weird stuff and I overlooked it.

Thanks and good night!