I have a general question as I found many frameworks are deprecated in iOS 9. Consider developing for iOS 7 and above with the latest Xcode and iOS SDK. I'm going to use UIAlertView
which is deprecated in iOS 9 and replaced with UIAlertController
. In my code when I want to show an alert, should I have to check for iOS version and provide a block of code using UIAlertView
for iOS prior to 9, and another block of code for UIAlertController
for iOS 9 and above?
The same goes for AddressBook
and AddressBookUI
frameworks which are replaced with Contacts
and ContactsUI
frameworks.
I know that many deprecated frameworks still work fine with new iOS SDK but sometime in future there will be a chance of not working fine. What would be a good approach on this issue?