Andrew Bancroft 9/18/2014

Swift iOS Version Checking

Read Original

This article explains how to check the iOS version in Swift to support both iOS 7 and iOS 8 users. It highlights the lack of pre-processor directives in Swift and provides a solution using NSFoundationVersionNumber. The author includes code snippets for defining iOS7 and iOS8 constants and demonstrates how to use them for fall-back plans. The article targets iOS developers needing to maintain compatibility while adopting new iOS 8 features.

Swift iOS Version Checking

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser