Objective c how detect iphone, iphone5 and iPad

Jack Hard

Active member
Oct 11, 2012
26
0
0
Visit site
In my application objective c. How to detect if is an iphone or ipad or iPhone5 ?

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

Trending Posts

Members online

Forum statistics

Threads
260,308
Messages
1,766,281
Members
441,233
Latest member
FMHPro