0

I realize that TWTweetComposeViewController is new to iOS 5 (which is now a bit old in itself). I would like to still support pre iOS 5 devices for my app however, so might I be able to control for this?

Would I need to do an OS version check and wrap the TWTweetComposeViewController in an if..else statement? Or is there another way to check and see if TWTweetComposeViewController is accessible?

Anyone have any idea?

Cheers, Brett

Brett
  • 11,637
  • 34
  • 127
  • 213
  • 1
    You want this: http://stackoverflow.com/questions/8291345/how-can-i-improve-my-twtweetcomposeviewcontroller-code-in-ios – logancautrell Jun 27 '12 at 15:17

2 Answers2

1

Try something like this:

if ([TWTweetComposeViewController class])
{
    // iOS 5 code
}
else
{
    // Older code
}
Alexsander Akers
  • 15,967
  • 12
  • 58
  • 83
0

Found a solution here. I hadn't thought of this approach. http://tonyngo.net/2011/10/twitter-integration-tutorial/

Brett
  • 11,637
  • 34
  • 127
  • 213