zoukankan      html  css  js  c++  java
  • 判断版本号

    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 以下");
        };
    一天一章
  • 相关阅读:
    11.29
    11.28
    11.24
    11.21
    11.17
    11.15
    11.14
    11.9
    11.5
    11.3
  • 原文地址:https://www.cnblogs.com/hangman/p/5389318.html
Copyright © 2011-2022 走看看