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 以下");
        };
    一天一章
  • 相关阅读:
    内容收缩伸展
    分页浏览的导航栏Bootstrap和js两种方法
    Bootstrap-缩略图
    Bootstrap-进度条
    Bootstrap-点击“×”,可以关闭页面
    Bootstrap页头
    Bootstrap分页
    Bootstrap--面包屑路径导航
    Bootstrap--标签和徽章<新闻后面的new hot等>
    NSLog 去除上线版本
  • 原文地址:https://www.cnblogs.com/hangman/p/5389318.html
Copyright © 2011-2022 走看看