So ill take my current circumstance into account as the topic of this question. The current version of the application i am writing can be used with devices running iOS 8 and above. So what i need to do is get a contact from the contacts application and then grab some of their data. Plain and simple i know.
So in order to do this i need to write one set of code that will use the AddressBook framework( iOS <=8.x) and one set of code that will run the Contacts Framework( iOS >=9.x). Im asking this question because i have read numerous ways to go about what i need to do.
One way is to just write the code using the AddressBook framework and be done with it because no matter what(Even if the object/function says its deprecated in the 9.0 version of iOS). That object will still be installed in the SDK so i dont need to write the code using the Contacts Framework. I dont believe this to be 100% accurate which is why im asking this question in the first place.
Another way to go about this is to write the code with both frameworks and then do a runtime check to see if the operating system responds to the code by using