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
259,683
Messages
1,764,035
Members
441,187
Latest member
Remona94B9