AAActivityAction is Reeder 3 like ActionSheet. Method architecture is inspired by UIActivity
and UIActivityViewController
.
AAActivityAction | Reeder 3 |
---|---|
Add pod 'AAActivityAction'
to your Podfile.
- Link
QuartzCore
framework. - Drag the
AAActivityAction
folder to your project.
- iOS 11 or higher.
QuartzCore
framework.- ARC.
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.directActionEnabled = YES; // If available only one activity, directly invoke its activity action. default is NO.
[activityAction show];
// or showInView
// [activityAction showInView:view];
MIT License.