首页 > 其他 > 详细

判断版本号

时间:2016-04-14 01:14:21      阅读:204      评论:0      收藏:0      [点我收藏+]
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 以下");
    };

判断版本号

原文:http://www.cnblogs.com/hangman/p/5389318.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!