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


func UI_USER_INTERFACE_IDIOM() -> UIUserInterfaceIdiom

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


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.