Posted By

saturngod on 11/24/10


Tagged


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

sag333ar
joshparnham
Tintenklecks
cnathan


Check device in iphone SDK


 / Published in: Objective C
 

  1. NSString *deviceType = [UIDevice currentDevice].model;
  2.  
  3. if([deviceType isEqualToString:@"iPhone"])
  4. {
  5. //iphone
  6. }

Report this snippet  

You need to login to post a comment.