let device = UIDevice.currentDevice()
let bundle = NSBundle(identifier: "bundleName")!
let infoDictionary = bundle.infoDictionary!
let version= infoDictionary["CFBundleVersion"] as? String
let shortVersion = infoDictionary["CFBundleShortVersionString"] as? String
參考資料:
http://stackoverflow.com/questions/31290219/get-fi...
全站熱搜
留言列表