ios开发 获取系统版本号 swift
在Swift中,可以通过UIDevice类的current属性获取当前设备的信息,包括系统版本号。
import UIKit
let systemVersion = UIDevice.current.systemVersion
print(systemVersion)
输出结果将是类似于14.0的字符串,表示当前设备的iOS版本号。
原文地址: https://www.cveoy.top/t/topic/jb5J 著作权归作者所有。请勿转载和采集!