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
Here is the best answer I got:
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { //iPhone methods } else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { //iPad methods }