How to check which iOS version your device is running

We can check the UIDevice’s property systemVersion for this. Here’s a quick snippet that checks this, and conveniently checks the first number in the returned value. This should work until iOS 9…

I’ve created a demo project for this code on GitHub:

Inspired by this thread:

About Jay Versluis

Jay is a medical miracle known as Super Survivor. He runs two YouTube channels, five websites and several podcast feeds. To see what else he's up to, and to support him on his mission to make the world a better place, check out his Patreon Campaign.

1 thought on “How to check which iOS version your device is running

  1. According to Apple’s iOS 7 Transitioning Guide, the following will check the iOS version via the Foundation framework. This code should be in application:didFinishLaunchingWithOptions (App Delegate):

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.