How setup orientation to iOS?


#1

How setup orientation to Portrait, Landscape Left, Landscape Right, but not Up-Side Down?

The tag:

<platform name="ios">
    <preference name="Orientation" value="all" />
</platform>

Set to ALL orientation, but i wanna setup only 3 orientations.


#2

I don’t think you can do that in the config.xml, the Orientation preference is meant to lock the orientation. It can only hold these values: default, landscape, or portrait. (see documentation)

You can disable specific orientations by opening up the iOS project in XCode: see this answer on StackOverflow.


#3

Thanks, i setup the app for all orientations!