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)

  • 相关阅读:
    vs2005 水晶报表横向打印Bug
    petshop4.0 详解之七(PetShop表示层设计)
    petshop4.0 详解之八(PetShop表示层设计)
    在VS2005中使用VSS2005
    用DataFormatString格式化GridView
    GridView的高级用法
    水晶报表 打印时出现错误提示:出现通信错误。将停止打印
    POJ1182 食物链[并查集]
    并查集的基础知识
    HDOJ1269 迷宫城堡[强连通分量]
  • 原文地址:https://www.cnblogs.com/Free-Thinker/p/5121557.html
Copyright © 2011-2022 走看看