Is there a way to determine the device running an application. I want to distinguish between iPhone and iPod Touch, if possible.
iPhone
iPod Touch
- (BOOL)deviceiPhoneOriPod { NSString *deviceType = [UIDevice currentDevice].model; if([deviceType rangeOfString:@"iPhone"].location!=NSNotFound) return YES; else return NO; }