MCTweetbotActivity is a UIActivity subclass that provides an "Open In Tweetbot" action to a UIActivityViewController.
- iOS 6.0 or greater
Add the MCTweetbotActivity.m, MCTweetbotActivity.h and MCTweetbotActivityMedia.xcassets files to your project.
Simply create an instance of MCTweetbotActivity and pass that object into the applicationActivities array when creating a UIActivityViewController.
NSURL *URL = [NSURL URLWithString:@"http://google.com"];
MCTweetbotActivity *tweetbot = [MCTweetbotActivity new];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[URL] applicationActivities:@[tweetbot]];Note that you can include the activity in any UIActivityViewController and it will only be shown to the user if there is a NSURL or NSString in the activity items.