Is there a way to limit the iOS version, such as "Not available if it is older than iOS 8.0" when the app is launched?
swift
You can retrieve the system (OS) version from the UIDevice
class.
let device=UIDevice.currentDevice()
print(device.systemVersion)//ex. "9.0"
Note that the property systemVersion
is of type String
and is not an integer value.
© 2024 OneMinuteCode. All rights reserved.