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
try this
if([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) { // etc. } else { //iphone }