I am answering this now (and at this late date), because many of the existing answers are quite old, and most Up Voted actually seems incorrect according to current Apple docs (iOS 8.1, 2015)!
To prove your point, this is a comment from the Apples header file (always look at the source and Apple headers):
Therefore, at present, APPLE recommends a method for detecting iPhone vs iPad, as follows:
1) In iOS PRIOR versions prior to 3.2, use the macro provided by Apple:
// for iPhone use UIUserInterfaceIdiomPhone if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
2) In versions of iOS 3.2 or later, use the property in [UIDevice currentDevice]:
// for iPhone use UIUserInterfaceIdiomPhone if([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad)
Cliff Ribaudo Apr 07 '15 at 10:12 2015-04-07 10:12
source share