Pocket/Pocket-ObjC-SDK — pull request #1 by davbeck (2012-12-02 04:56:11+00:00)
Title: Added UIActivity subclass

PocketAPIActivity is a `UIActivity` subclass that can be used with `UIActivityViewController` to save `NSURL`s to Pocket. To use it, simply add `[[PocketAPIActivity alloc] init]` to the array of activities when you create a `UIActivityViewController`:

```objectivec
[[UIActivityViewController alloc] initWithActivityItems:@[ [NSURL URLWithString:@"http://google.com"] ] applicationActivities:@[ [[PocketAPIActivity alloc] init] ]];
```

The activity will add **all** `NSURL` activity items to pocket, returning a failure if *any* of them return an error.

The activity will show up in the view controller only if:

1. There is at least 1 `NSURL` in the activity items
2. The Pocket iOS app is installed or the user has logged in

This behavior means that you can add the activity to all your `UIActivityViewController`s and it will only appear when relevant.