[iOS] How do I get the App version and build number using Swift?

Posted in :

if let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String {
    self.labelVersion.text = version
}

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *