func versionCheck(){
letinfoDictionary = NSBundle.mainBundle().infoDictionary
let appdisplayName:AnyObject? = infoDictionary!["CFBundledisplayName"]
let majorVersion :AnyObject? = infoDictionary! ["CFBundleShortVersionString"]
let minorVersion :AnyObject? = infoDictionary! ["CFBundLeversion"]
let appversion = majorVersionasString
letiosversion : Nsstring= UIDevice.currentDevice().systemVersion//ios版本
letidentifierNumber = UIDevice.currentDevice().identifierForvendor//设备udid
letsystemName = UIDevice.currentDevice().systemName//设备名称
letmodel = UIDevice.currentDevice().model//设备型号
letlocalizedModel = UIDevice.currentDevice().localizedModel//设备区域化型号如A1533
println(appversion)
}
majorVersion 主程序版本号
minorVersion build 版本号