How to access weak linked framework in iOS?
I want to use Twitter framework for iOS 5, but be able to run my app in older OS. I added weak referenced framework (i.e. set "optional" flag) in Xcode 4.2 Target settings. Base SDK is iOS 5, iOS deployment Target is iOS 3.2. Next, I try to use Twitter framework: #import <Twitter/Twitter.h> ... Class twClass = NSClassFromString(@"TWTweetComposeViewController"); if (!twClass) // Framework not available, older iOS { [self shareWithTwitterPriorIOS5]; return; } if ([TWTweetComposeViewController canSendTweet]) // Check if twitter is setup and reachable { TWTweetComposeViewController* twc = [