Is there a way to determine the device running an application. I want to distinguish between iPhone and iPod Touch, if possible.
Is there a way to determine the device running an application. I want to distinguish between iPhone and iPod Touch, if possible.
You can use the UIDevice class like this:
NSString *deviceType = [UIDevice currentDevice].model;
if([deviceType isEqualToString:@"iPhone"])
// it's an iPhone
I've created an extension that lets you to have 3 levels of identification:
It updates with last iOS devices