Last Updated: February 20, 2016
·
736
· juice

API to determine whether running on iPhone or iPad

[[UIDevice currentDevice] userInterfaceIdiom]

The style of interface to use on the current device. (read-only, iOS 3.2 or later)