SkillAgentSearch skills...

MCTweetbotActivity

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

Install / Use

/learn @MattCheetham/MCTweetbotActivity
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.

Related Skills

View on GitHub
GitHub Stars13
CategoryDevelopment
Updated3y ago
Forks2

Languages

Objective-C

Security Score

60/100

Audited on Jan 28, 2023

No findings