Skip to content
This repository was archived by the owner on Feb 15, 2018. It is now read-only.

MattCheetham/MCTweetbotActivity

Repository files navigation

MCTweetbotActivity

MCTweetbotActivity is a UIActivity subclass that provides an "Open In Tweetbot" action to a UIActivityViewController.

MCTweetbotActivity screenshot

Requirements

  • iOS 6.0 or greater

Installation

Add the MCTweetbotActivity.m, MCTweetbotActivity.h and MCTweetbotActivityMedia.xcassets files to your project.

Usage

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.

About

MCTweetbotActivity is a UIActivity subclass that provides an “Open In Tweetbot” action to a UIActivityViewController.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors