Enumeration

UIUserInterfaceIdiom

The interface type for the device or an object that has a trait environment, such as a view and view controller.

Declaration

typedef enum UIUserInterfaceIdiom : NSInteger {
    ...
} UIUserInterfaceIdiom;

Topics

Constants

UIUserInterfaceIdiomPhone

An interface designed for iPhone and iPod touch.

UIUserInterfaceIdiomPad

An interface designed for iPad.

UIUserInterfaceIdiomTV

An interface designed for tvOS and Apple TV.

UIUserInterfaceIdiomCarPlay

An interface designed for an in-car experience.

See Also

Retrieving Interface-Related Traits

userInterfaceIdiom

The user interface idiom of the trait collection.

forceTouchCapability

The force touch capability value of the trait collection.

UIForceTouchCapability

Keys that indicate the availability of 3D Touch on a device. Only certain devices support 3D Touch. On those that do, the user can disable 3D Touch in the Accessibility area in Settings.

layoutDirection

The layout direction associated with the current environment.

UITraitEnvironmentLayoutDirection

Constants indicating the layout direction associated with the current environment.

userInterfaceStyle

The style associated with the user interface.

UIUserInterfaceStyle

Constants indicating the interface style for the app.