斯威夫特3:
let minimumVersion = OperatingSystemVersion(majorVersion: 8, minorVersion: 1, patchVersion: 2) if ProcessInfo().isOperatingSystemAtLeast(minimumVersion) { //current version is >= (8.1.2) } else { //current version is < (8.1.2) }
友情链接: json在线解析 通晓查询 糯晒黄历 姓名打分