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.
-
Drag the ARKippsterActivity folder containing the
.h
,.m
, andkippster-activity
PNG files into your Xcode project. -
#import "ARKippsterActivity.h"
-
Initialize a
UIActivityViewController
, activity items including a URL, andARKippsterActivity
along with any otherUIActivity
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]];
- 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.