In my application (written in Objective-C), how do I detect if the device is an iPhone, iPad, or iPhone5?
if([[UIDevice currentDevice]userInterfaceIdiom] ==
if ([[UIDevice currentDevice].model hasPrefix:@"iPhone"]) {//iPhone... (not iTouch or iPad)
if ([[UIDevice currentDevice].model hasPrefix:@"iPad"]) {//iPad...
if (([[UIDevice currentDevice].model hasPrefix:@"iPhone"]) && ([UIScreen mainScreen]bounds].size.height == 568)) {//iPhone5...
And also, just for reference... iTouch is this:
if ([[UIDevice currentDevice].model hasPrefix:@"iPod"]) {//iTouch