diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h index 9fd00508a2..bc4d8f4dcf 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h @@ -602,6 +602,25 @@ private: if (settings ["UIStatusBarHidden"]) addPlistDictionaryKeyBool (dict, "UIStatusBarHidden", true); + if (iOS) + { + static const char* kDefaultiOSOrientationStrings[] = + { + "UIInterfaceOrientationPortrait", + "UIInterfaceOrientationLandscapeLeft", + "UIInterfaceOrientationLandscapeRight", + nullptr + }; + + StringArray iOSOrientations (kDefaultiOSOrientationStrings); + + dict->createNewChildElement ("key")->addTextElement ("UISupportedInterfaceOrientations"); + XmlElement* plistStringArray = dict->createNewChildElement ("array"); + + for (int i = 0; i < iOSOrientations.size(); ++i) + plistStringArray->createNewChildElement ("string")->addTextElement (iOSOrientations[i]); + } + for (int i = 0; i < xcodeExtraPListEntries.size(); ++i) dict->addChildElement (new XmlElement (xcodeExtraPListEntries.getReference(i)));