xcode 决断设备类型

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

你可能感兴趣的:(xcode,ipad)