brush51 / AAActivityAction

Reeder like ActionSheet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AAActivityAction

AAActivityAction is Reeder like ActionSheet. Method architecture is inspired by UIActivity and UIActivityViewController.

https://dl.dropbox.com/u/149268/AA.png

Installation

CocoaPods

not registerted yet.

Manually

  1. Link QuartzCore framework.
  2. Drag the AAActivityAction folder to your project.

Requirement

  • iOS 4 or higher.
  • QuartzCore framework.
  • ARC.

Usage

AAActivity *activity = [[AAActivity alloc] initWithTitle:@"Safari"
                                                   image:[UIImage imageNamed:@"Safari.png"]
                                             actionBlock:^(AAActivity *activity, NSArray *activityItems) {
    // do something...
}];
AAActivityAction *activityAction = [[AAActivityAction alloc] initWithActivityItems:@[@"http://www.apple.com/"]
                                                             applicationActivities:@[activity]
                                                                         imageSize:AAImageSizeSmall];
activityAction.title = @"sample title";
[activityAction show];
// or showInView
// [activityAction showInView:view];

License

MIT License.

About

Reeder like ActionSheet.