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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software