Determine the device running an application

by alex 9. December 2009 09:33

NSString *deviceType = [UIDevice currentDevice].model;

 

if([deviceType isEqualToString:@"iPhone"])

// it's an iPhone


Currently rated 4.5 by 2 people

  • Currently 4.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

General

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen