zoukankan      html  css  js  c++  java
  • 获取IOS客户端系统版本号

    由于代码中需要实现某个5.0后才能支持的方法,所以添加一个判断。

    获取系统版本号的方法:

                  [[UIDevice currentDevice] systemVersion];

    判断是否大于版本5.0:

                  float systemVersion = [[[UIDevice currentDevice] systemVersion] floatValue];

                  if (systemVersion >= 5.0)

                 {

                           //某个仅支持5.0以上版本的方法

                 }

    其他ios系统信息:

    [[UIDevice currentDevice] name]); // Name of the phone as named by user 

    [[UIDevice currentDevice] uniqueIdentifier]); // A GUID like string 

    [[UIDevice currentDevice] systemName]); // "iPhone OS" 

    [[UIDevice currentDevice] systemVersion]); // "2.2.1" 

    [[UIDevice currentDevice] model]); // "iPhone" on both devices 

    [[UIDevice currentDevice] localizedModel]); // "iPhone" on both devices 

  • 相关阅读:
    隐语义模型LFM
    基于内容的推荐、协同过滤
    评定标准
    函数式模型示例
    函数式模型概述
    序贯模型
    seq2seq
    链队列
    顺序栈
    线性表的静态链表存储结构
  • 原文地址:https://www.cnblogs.com/nanoCramer/p/2828448.html
Copyright © 2011-2022 走看看