Friday, August 12, 2011

Determine device (iPhone, iPod Touch) with iPhone SDK

NSString *deviceType = [UIDevice currentDevice].model;

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

// it is iphone
// similarly we can also check iPad,iPod, and simulator.

No comments:

Swift Operators - Basic Part 3 (Range operators in swift)

Range Operators: Closed Range operators  Half-Open Range Operators One-Sided Ranges Closed Range Operators:  a...b It defines...