Posted By

espinallab on 01/29/10


Tagged

deviceType


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

bobbym245
Tintenklecks
cnathan


Determine the device running an application


 / Published in: Objective C
 

URL: http://iphonesdksnippets.com/post/2009/12/09/Determine-the-device-running-an-application.aspx

  1. NSString *deviceType = [UIDevice currentDevice].model;
  2.  
  3.  
  4.  
  5. if([deviceType isEqualToString:@"iPhone"])
  6.  
  7. // it's an iPhone

Report this snippet  

You need to login to post a comment.