Last active
December 11, 2020 03:04
-
-
Save stevenchou1130/7441197b302fd706e75c771d0c8bdd59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let appVersion = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as? String | |
let storeVersion = json["results"][0]["version"].stringValue | |
if appVersion == storeVersion { | |
// 已是最新版本 | |
} else { | |
// Do something | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment