Edytuj

Udostępnij za pośrednictwem


UIInterfaceOrientationMask Enum

Definition

An enumeration of values that specify the available orientations of the user interface.

This enumeration supports a bitwise combination of its member values.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UIInterfaceOrientationMask
type UIInterfaceOrientationMask = 
Inheritance
UIInterfaceOrientationMask
Attributes

Fields

Name Value Description
Portrait 2

The long side is vertical.

PortraitUpsideDown 4

The UIViewController supports upside-down portrait orientation.

LandscapeRight 8

The UIViewController supports landscape-right orientation.

LandscapeLeft 16

The UIViewController supports landscape-left orientation.

Landscape 24

The UIViewController supports both landscape-left and landscape-right orientations.

AllButUpsideDown 26

The UIViewController supports all orientations except upside-down portrait.

All 30

The UIViewController supports all interface orientations.

Remarks

A UIViewController may support more than one UIInterfaceOrientation. This value, returned from GetSupportedInterfaceOrientations() and SupportedInterfaceOrientationsForWindow(UIWindow), specifies which orientations are supported by the application.

Applies to

See also