Philipp Kursawe created CB-11442:
------------------------------------

             Summary: preference for orientation sets upside-down when only 
"portrait" is configured
                 Key: CB-11442
                 URL: https://issues.apache.org/jira/browse/CB-11442
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 4.1.1
            Reporter: Philipp Kursawe
            Assignee: Shazron Abdullah


When setting the orientation to portrait like this:

{code}
<preference name="orientation" value="portrait"/>
{code}

the cordova ios engine also sets the "upside-down" orientation. I had to resort 
to overwrite the plist values myself

{code}
<config-file target="*-Info.plist" parent="UISupportedInterfaceOrientations" 
overwrite="true">
          <array>
            <string>UIInterfaceOrientationPortrait</string>
          </array>
        </config-file>
        <config-file target="*-Info.plist" 
parent="UISupportedInterfaceOrientations~ipad" overwrite="true">
          <array>
            <string>UIInterfaceOrientationPortrait</string>
          </array>
        </config-file>
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to