Contents

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.

See Also

Getting the current idiom