Function

UI_USER_INTERFACE_IDIOM()

Returns the interface idiom supported by the current device (recommended for apps that run in versions of iOS earlier than 3.2).

Declaration

func UI_USER_INTERFACE_IDIOM() -> UIUserInterfaceIdiom

Return Value

UIUserInterfaceIdiom.phone if the device is an iPhone or iPod touch or UIUserInterfaceIdiom.pad if the device is an iPad.

Discussion

If your app runs in iOS 3.2 and later, use userInterfaceIdiom instead.

See Also

Getting the Current Idiom

enum UIUserInterfaceIdiom

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