Skip to content

UIInterfaceOrientationMask

The constants of UIInterfaceOrientationMask enumeration identify the application's orientation (iOS platform).

const UIInterfaceOrientationMask = {
    Portrait: 0,
    LandscapeLeft: 1,
    LandscapeRight: 2,
    PortraitUpsideDown: 3,
    Landscape: 4,
    All: 5,
    AllButUpsideDown: 6,
}
Constant Description
Portrait The view controller supports a portrait interface orientation
LandscapeLeft The view controller supports a landscape-left interface orientation
LandscapeRight The view controller supports a landscape-right interface orientation
PortraitUpsideDown The view controller supports an upside-down portrait interface orientation
Landscape The view controller supports both landscape-left and landscape-right interface orientation
All The view controller supports all interface orientations
AllButUpsideDown The view controller supports all but the upside-down portrait interface orientation

Info

For more information, please see the official Apple documentation.

Back to top