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

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

Discussion

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

See Also

Idioms

enum UIUserInterfaceIdiom

The type of interface that should be used on the current device