摘要:
NSString *modelname = [[UIDevice currentDevice]model];if ([modelname isEqualToString:@"iPhone"]) { // iPhone}if ([modelname isEqualToString:@"IPod Touch"]) { // iPod touch}if ([modelname isEqualToString:@"iPhone Simulator"]) { // iPhone Simulator} #import <TargetCond 阅读全文