zoukankan      html  css  js  c++  java
  • IOS 设备信息读取

                        let infoDictionary = NSBundle.mainBundle().infoDictionary

                

                        let appDisplayName: AnyObject? = infoDictionary!["CFBundleDisplayName"]

                

                        let majorVersion : AnyObject? = infoDictionary! ["CFBundleShortVersionString"] //主程序版本号

                

                        let minorVersion : AnyObject? = infoDictionary! ["CFBundleVersion"//版本号

                

                        let appversion  = String(majorVersion)

                

                        let iosversion : NSString = UIDevice.currentDevice().systemVersion   //ios 版本

                

                        let identifierNumber = UIDevice.currentDevice().identifierForVendor   //设备 udid

                

                        let systemName = UIDevice.currentDevice().systemName   //设备名称

                

                        let model = UIDevice.currentDevice().model   //设备型号

                

                        let localizedModel = UIDevice.currentDevice().localizedModel   //设备区域化型号 A1533

                

                        print("infoDictionary%@,appDisplayName:%@,majorVersion:%@minorVersion:%@appversion:%@iosversion:%@identifierNumber:%@systemName:%@model%@localizedModel:%@",infoDictionary,appDisplayName,minorVersion,minorVersion,appversion,iosversion,identifierNumber,systemName,model,localizedModel)

  • 相关阅读:
    kickstart自动化安装
    linux双网卡绑定
    作死实验,删除libc.so.6
    安装centos6及安装redhat6后的配置
    交换机、linux光衰查询
    ansible的简单使用
    linux安全配置学习
    vm的三种网络模式
    Recylerview的使用系列教程
    Android自定义组合控件
  • 原文地址:https://www.cnblogs.com/Free-Thinker/p/5121557.html
Copyright © 2011-2022 走看看