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