I am writing a universal app for both iphone and ipad. How do I determine if the device is an iPad. I have used this link to determine the iPhone type (3G, 3GS).
Det
if ( [(NSString*)[UIDevice currentDevice].model isEqualToString:@"iPad"] ) { NSLog(@"...in iPad"); } else { NSLog(@"...in iPhone/iPod"); }