mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Introjucer: Fix iOS 8.1 orientation by adding default orientation flags to the generated project plist.
This commit is contained in:
parent
fe4398754f
commit
ef4a6ce1a7
1 changed files with 19 additions and 0 deletions
|
|
@ -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)));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue