Skip to content

UIInterfaceOrientationMask

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

class UIInterfaceOrientationMask {
  static const int Portrait = 0;
  static const int LandscapeLeft = 1;
  static const int LandscapeRight = 2;
  static const int PortraitUpsideDown = 3;
  static const int Landscape = 4;
  static const int All = 5;
  static const int 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