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 以下");
        };
    一天一章
  • 相关阅读:
    05 css继承性
    04 选择器权重
    03 css三种引入的方式
    02 css实现举例
    01 css介绍
    05 dl-添加定义列表
    04 ol-热门点击排行榜
    02 h1 p hr br 特殊符号
    01html简介
    函数内置方法
  • 原文地址:https://www.cnblogs.com/hangman/p/5389318.html
Copyright © 2011-2022 走看看