NRAppUpdate
简介
NRAppUpdate允许应用检测iTunes上有无新版本的应用程序。例如,在应用启动时,它会检查更新,并相应地显示更新提示。
示例
要运行示例项目,请首先克隆仓库,然后在Example目录中运行pod install
。
要求
Xcode 9+ , Swift 4 , iOS 9 及以上
安装
NRAppUpdate可通过CocoaPods获取。要安装它,只需将以下行添加到Podfile中即可:
pod "NRAppUpdate"
使用方法
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
NRAppUpdate.checkUpdate(for: "---YOUR APP ITUNES ID---")
//Your app id-- Just check the itunes url of your app "https://itunes.apple.com/in/app/myapp/id284882915?mt=8" and here is your app itunes id 284882915
}
参与贡献
欢迎贡献力量!(
- 进行Fork操作( http://github.com/naveenrana1309/NRAppUpdate/fork )
- 创建您的功能分支 ('git checkout -b my-new-feature')
- 提交您的变更 ('git commit -am '添加某些功能')
- 推送到分支 ('git push origin my-new-feature')
- 创建新的Pull Request
兼容性
Xcode 9+ , Swift 4 , iOS 10及以上
作者
Naveen Rana. 查看个人资料
电子邮件: [email protected].
详情请查看Facebook个人资料。
许可协议
NRAppUpdate遵循MIT许可证。有关更多信息,请参阅LICENSE文件。