Instance Property

userInterfaceIdiom

The style of interface to use on the current device.

Declaration

@property(nonatomic, readonly) UIUserInterfaceIdiom userInterfaceIdiom;

Discussion

For universal applications, you can use this property to tailor the behavior of your application for a specific type of device. For example, iPhone and iPad devices have different screen sizes, so you might want to create different views and controls based on the type of the current device.

See Also

Identifying the Device and Operating System

name

The name identifying the device.

systemName

The name of the operating system running on the device represented by the receiver.

systemVersion

The current version of the operating system.

model

The model of the device.

localizedModel

The model of the device as a localized string.

identifierForVendor

An alphanumeric string that uniquely identifies a device to the app’s vendor.