Determine the device running an application


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. NSString *deviceType = [UIDevice currentDevice].model;
  2.  
  3.  
  4.  
  5. if([deviceType isEqualToString:@"iPhone"])
  6.  
  7. // it's an iPhone

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.