Skip to content

Instantly share code, notes, and snippets.

@shannoga
Created May 30, 2011 11:58
Show Gist options
  • Save shannoga/998802 to your computer and use it in GitHub Desktop.
Save shannoga/998802 to your computer and use it in GitHub Desktop.
Is that an ipad
+ (BOOL)isDeviceAniPad {
#ifdef UI_USER_INTERFACE_IDIOM
return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad);
#else
return NO;
#endif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment