Objective c how detect iphone, iphone5 and iPad

In my application objective c. How to detect if is an iphone or ipad or iPhone5 ?

if([[UIDevice currentDevice]userInterfaceIdiom]==UIUserInterfaceIdiomPhone){
//[iphone]
}else{
//[ipad]
}
In my application objective c. How to detect if is an iphone or ipad or iPhone5 ?

if([[UIDevice currentDevice]userInterfaceIdiom]==UIUserInterfaceIdiomPhone){
//[iphone]
}else{
//[ipad]
}

Picture please to define it.


Sent from my iP5 using Tapatalk

Original thread: https://forums.imore.com/threads/objective-c-how-detect-iphone-iphone5-and-ipad.244192/