Show Menu

Looking to hire an app developer?

Submit your 30 day Job Listing for FREE

iOS 7 has a very good adoption rate, however you might still want to support people that are running older versions of iOS.

You can load different storyboards or xib files, different launch screens and handle API differences. You can use the version of the Foundation framework to determine the current system version and load the appropriate resources. The code below shows how to check the Foundation framework version:

if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_6_1){
    //load resources for earlier versions
} else {
    //load resources for iOS 7

Note that you can check for versions earlier than 6.1, just use the right constant instead of NSFoundationVersionNumber_iOS_6_1.

having issues?

We have a Questions and Answer section where you can ask your iOS Development questions to thousands of iOS Developers.

Ask Question

FREE Download!

Get your FREE Swift 2 Cheat Sheet and quick reference guide PDF download when you sign up to SwiftMonthly

Sharing is caring

If you enjoyed this tutorial, please help us and others by sharing using one of the social media buttons below.

Written by:

Vasilica Costescu is just a girl that loves her iPhone and iOS programming, she graduated from: West University of Timisoara with a degree in Computer Science in 2006. Her blog has awesome articles. Check it out.