AppVersionMonitor

码农软件 · 软件分类 · 其他(Others) · 2019-07-17 17:58:51

软件介绍

AppVersionMonitor 是一款为方便监控 iOS 应用程序版本的软件。

通过它你可以获得以往的版本和安装历史。

使用:

运行工程实例,克隆 repo,并且先从实例项目运行 pod install。

要求:

安装:

AppVersionMonitor 可在 CocoaPods 上使用。要安装 AppVersionMonitor 你只需要在 Podfile
中按照下面的操作即可:

pod "AppVersionMonitor"

使用:

安装:

// AppDelegatefunc applicationDidFinishLaunching(application: UIApplication) {

    AppVersionMonitor.sharedMonitor.startup()
}

获得 MarketingVersion(CFBundleShortVersionString):

let currentVersion: AppVersion = AppVersion.marketingVersion
let versionString: String = AppVersion.marketingVersion.versionString // "1.2.3"

获得安装过的版本:

let installedVersions: [AppVersion] = AppVersionMonitor.sharedMonitor.installedVersions

对比版本:

AppVersion.marketingVersion > AppVersion("1.2.3")
AppVersion("1.2.3") < AppVersion("3.2.1")
AppVersion("1.2.3") < "3.2.1"

更方便地检测自己当前的版本状况:

switch AppVersionMonitor.sharedMonitor.state {
case .Installed:
// Do something when app installed.
// Happy! 
// ex. Start tutorial.
case .NotChanged:
// Do something when version not changed.
// Peace 
// Nothing to do?
case .Upgraded(let previousVersion: AppVersion):
// Do something when version upgraded.
// Yeah! 
// ex. Migrate App Data.
case .Downgraded(let previousVersion: AppVersion):
// Do something when version downgraded. (Impossible normally)
// What happened? 
// ex. Purge App Data.
}

本文地址:https://codercto.com/soft/d/10348.html

程序员2010精华本

程序员2010精华本

程序员杂志社 / 电子工业 / 2011-1 / 49.00元

《程序员(2010精华本)》主要内容:《程序员》创刊10年来,每年末编辑部精心打造的“合订本”已经形成一个品牌,得到广大读者的认可和喜爱。今年,《程序员》杂志内容再次进行了优化整合,除了每期推出的一个大型专题策划,各版块也纷纷以专题、策划的形式,将每月的重点进行了整合,让内容非常具有凝聚力,如专题篇、人物篇、实践篇等。另外杂志的版式、色彩方面也有了很大的飞跃,给读者带来耳目一新的阅读体验。一起来看看 《程序员2010精华本》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

URL 编码/解码
URL 编码/解码

URL 编码/解码