How to detect which iOS version is running on the device?


When working on iOS applications, we sometimes need to know the version that's running on an iPhone device. In this article we'll learn how to find the iOS version being used, using an iOS Application.

Create an iOS application and in it's viewController's view did load function write the following code.

print(" System version - ",UIDevice.current.systemVersion)

This will return the iOS version of the device currently in use. Like current version of my simulator is iOS 12.0 hence the result comes as

System Version – 12.0

Updated on: 30-Jul-2019

355 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements