判断版本号

NSString * identifierForVendor =[[UIDevice currentDevice].identifierForVendor UUIDString];

    NSLog(@"%@dd",identifierForVendor);//唯一标识
    [[UIDevice currentDevice] name]; //设备名称
    [[UIDevice currentDevice] localizedModel];//设备的模型作为一个本地化的字符串
    [[UIDevice currentDevice] model];//设备的模型 如iPhone或者iPod touch
    [[UIDevice currentDevice] systemName] ;//系统名称
    if ([[UIDevice currentDevice].systemVersion doubleValue] > 8.0f) {
        NSLog(@" ios 9 %f",[[UIDevice currentDevice].systemVersion doubleValue]);
       
        NSLog(@"设备名称  %@", [[UIDevice currentDevice] name]);
        NSLog(@" 设备的模型作为一个本地化的字符串 %@", [[UIDevice currentDevice] localizedModel]);
        NSLog(@"设备的模型 如iPhone或者iPod touch %@", [[UIDevice currentDevice] model]);
        NSLog(@"系统名称 %@", [[UIDevice currentDevice] systemName]);

       
       
       
       
    }else{
        NSLog(@" ios 9 以下");
    };
一天一章
原文地址:https://www.cnblogs.com/hangman/p/5389318.html