To run the example project, clone the repo, and run pod install
from the Example directory first.
- 提示用户有新版本,可以更新了。
- 强制用户有新版本后必须更新使用。
- 修复当强制用户更新新版本后,在网络不好的情况下,打开AppStore失败后是否可以暂时使用当前版本的App。
通过获取AppStore上的版本号,跟当前运行的版本号进行比对,若AppStore上存在新版本,就提示用户打开AppStore进行更新。
一般提示:[[MJXAppUpdater sharedUpdater] showUpdateWithConfirmation];
若是强制更新则用:
参数available:即打开AppStore失败后,App是否也能暂时继续使用。 若传NO,即打开AppStore失败后会退出程序,传nil和YES时,默认也可以暂时网络不好时使用。
[[MJXAppUpdater sharedUpdater] showUpdateWithForceAllowNetworkFailure:nil];
pod "MJXAppUpdater"
毛建祥, 15208105440@163.com
MJXAppUpdater is available under the MIT license. See the LICENSE file for more info.