I want to set the iOS version limit on Swift.

Asked 2 years ago, Updated 2 years ago, 29 views

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

2022-09-30 16:08

1 Answers

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.


2022-09-30 16:08

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.