NSString *device = [[UIDevice currentDevice].model substringToIndex:4]; if ([device isEqualToString:@"iPho"]){ // TODO }else if ([device isEqualToString:@"iPad"]){ // TODO }else if ([device isEqualToString:@"iPod"]){ // TODO }
NSString *device = [[UIDevice currentDevice].model substringToIndex:4]; if ([device isEqualToString:@"iPho"]){ // TODO }else if ([device isEqualToString:@"iPad"]){ // TODO }else if ([device isEqualToString:@"iPod"]){ // TODO }