Rob Rob - 1 year ago 127
Objective-C Question

Determine device (iPhone, iPod Touch) with iPhone SDK

Is there a way to determine the device running an application. I want to distinguish between

iPod Touch
, if possible.

Answer Source

You can use the UIDevice class like this:

NSString *deviceType = [UIDevice currentDevice].model;

if([deviceType isEqualToString:@"iPhone"])
    // it's an iPhone
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download