alextrob / ARKippsterActivity

Kippster UIActivity subclass to easily post to Kippt.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ARKippsterActivity

Kippster is a Kippt client for iOS. This UIActivity subclass will allow your users to easily share URLs to Kippt via Kippster in the standard iOS 6 share sheet.

Installation and Setup

  1. Drag the ARKippsterActivity folder containing the .h, .m, and kippster-activity PNG files into your Xcode project.

  2. #import "ARKippsterActivity.h"

  3. Initialize a UIActivityViewController, activity items including a URL, and ARKippsterActivity along with any other UIActivity subclasses you might be using (e.g. [ARChromeActivity](https://github.com/alextrob/ARChromeActivity)).

NSURL *urlToShare = [NSURL URLWithString:@"http://kippster.net"];
NSArray *activityItems = @[urlToShare];

ARKippsterActivity *kippsterActivity = [[ARKippsterActivity alloc] initWithCallbackURL:[NSURL URLWithString:@"kippsteractivitydemo://"]];

UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:@[kippsterActivity]];
  1. Present the view controller. For iPhone, that's as easy as:
[self presentViewController:activityViewController animated:YES completion:nil];

On iPad, you'll need to present it in a UIPopoverViewController. See the demo app for details.

About

Kippster UIActivity subclass to easily post to Kippt.

License:Other


Languages

Language:Objective-C 94.7%Language:Ruby 5.3%