标签:swift nsbundle cfbundleshortversion
swift:
NSBundle.mainBundle().infoDictionary?["CFBundleShortVersionString"]
if let version = NSBundle.mainBundle().infoDictionary?["CFBundleShortVersionString"] as? String { versionLabel.text = "Version. \(version)" } else { versionLabel.text = "Version. 1.0.0" }
标签:swift nsbundle cfbundleshortversion
原文地址:http://blog.csdn.net/tounaobun/article/details/42012609