Skip to content

Instantly share code, notes, and snippets.

@mborromeo
Created November 25, 2010 11:11
Show Gist options
  • Save mborromeo/715220 to your computer and use it in GitHub Desktop.
Save mborromeo/715220 to your computer and use it in GitHub Desktop.
[iPhone / iPad] Check if device is an iPad with 3.x devices
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 30200
#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
#else
#define IS_IPAD false
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment