let infoDictionary = Bundle.main.infoDictionary!
let minorVersion = infoDictionary["CFBundleShortVersionString"]//版本号(内部标示)
let appVersion = minorVersion as! String
versionLabel.text = String(format:"for iOS %@",appVersion)
/*
//应用程序信息
let infoDictionary = Bundle.main.infoDictionary!
let appDisplayName = infoDictionary["CFBundleDisplayName"] //程序名称
let majorVersion = infoDictionary["CFBundleShortVersionString"]//主程序版本号
let minorVersion = infoDictionary["CFBundleVersion"]//版本号(内部标示)
let appVersion = majorVersion as! String
*/