Skip to content

Instantly share code, notes, and snippets.

@yllan
Created November 18, 2010 00:50
Show Gist options
  • Save yllan/704451 to your computer and use it in GitHub Desktop.
Save yllan/704451 to your computer and use it in GitHub Desktop.
Test iPad
+(BOOL) isIPad {
BOOL isIPad=NO;
NSString* model = [UIDevice currentDevice].model;
if ([model rangeOfString:@"iPad"].location != NSNotFound) {
return YES;
}
return isIPad;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment