Is it possible to read the iOS version (4.2.1, 4.3.3, etc.) running a MonoTouch app? If so, how?
The latest version of iOS and iPadOS is 15.6.1. Learn how to update the software on your iPhone, iPad, or iPod touch. The latest version of macOS is 12.5.1. Learn how to update the software on your Mac and how to allow important background updates.
Which macOS version is installed? From the Apple menu in the corner of your screen, choose About This Mac. You should see the macOS name, such as macOS Monterey or macOS Big Sur, followed by its version number. If you need to know the build number as well, click the version number to see it.
Try UIDevice.CurrentDevice.SystemVersion
.
If you only need it for a boolean condition, there is a convenience method:
if (UIDevice.CurrentDevice.CheckSystemVersion (6, 0)) // at least 6.0
In MonoTouch:
To get the Major version use:
UIDevice.CurrentDevice.SystemVersion.Split('.')[0]
For minor version use:
UIDevice.CurrentDevice.SystemVersion.Split('.')[1]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With