如何在iOS中比较版本号字符串呢,代码如下
if ([latestVersion compare:currentVersion options:NSNumericSearch] == NSOrderedDescending) {
//You may need to update the app.
}
在Android下的代码
if (latestVersion.compareTo(currentVersion) > 0) {
//You may need to update the app.
}