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)

  • 相关阅读:
    【五一qbxt】day7-1 引水入城
    【五一qbxt】day6 OI中的stl
    【五一qbxt】test2
    ASCII码
    深入浅出Redis04使用Redis数据库(lists类型)
    深入浅出Redis03 使用Redis数据库(hashes类型)
    深入浅出Redis01安装
    FireFox & Chrome 使用技巧
    Android学习笔记03-搭建Win8下的Android开发环境
    java + jquery + ajax + json 交互
  • 原文地址:https://www.cnblogs.com/Free-Thinker/p/5121557.html
Copyright © 2011-2022 走看看