Apparently, my use of Twitter oAuth (token request) doesn’t work in iOS 5… how can I keep this code for anything below iOS 5 and use the new Twitter Framework for iOS 5+?
Is it possible to detect iOS versions?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You (almost) never want to query iOS (or even framework) versions. That (usually) means you’re solving the wrong problem.
In this case, you really want to know “can I use Twitter.framework?”
Thanks to the magic of weak linking, you can try something like:
You can also check for lower level framework components, e.g.:
(Obviously you will need to link against Twitter.framework and include the requisite headers.)