CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

CheckVersion 1.0.3

CheckVersion 1.0.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Mar 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by ljhang.



  • By
  • ljhang

CheckVersion

   

要求

Swift 3.0 , iOS 8.0+

介绍

  1. 简单地调用一个方法,即可检测APP的新版本特性的提示。
  2. 默认使用系统的弹框,也支持自定义的弹框。

安装

手动添加

  • 将 CheckVersion 文件夹拖入到你的工程目录中

用法

使用默认弹框进行版本的检测提示。

let checkMgr = CheckVersionMgr.shareInstance
checkMgr.checkVersionWithSystemAlert()

如果要使用自定义的提示框,可在以下方法的block中自定义。

let checkMgr = CheckVersionMgr.shareInstance
checkMgr.checkVersionWithCustomView { (model) in
    //code
}

不再提示APP版本的更新提示。

默认从APP跳转出去到AppStore进行更新,也支持在APP应用内打开更新页面,请设置openTrackUrlInAppStore

let checkMgr = CheckVersionMgr.shareInstance
checkMgr.openTrackUrlInAppStore = false

许可证

使用 MIT 许可证,详情见 LICENSE 文件。