CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✓ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2014 |
Maintained by kaiinui.
[iOS] UIActivity class for Email that appears in Action category in UIActivityViewController
Usage
---
```objc
UIActivity *emailActivity = [[AQSActionEmailActivity alloc] init];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:emailActivity];
activityViewController.excludedActivityTypes = @[UIActivityTypeMail];
[self presentViewController:activityViewController animated:YES completion:NULL];
To set a title, include AQSEmailActivityTitle objects in activityItems.
NSArray *activityItems = @[
[AQSEmailActivityTitle titleWithTitle:@"Title!"],
@"Body!"
];And to set recipients, include AQSEmailActivityRecipient objects in activityItems.
NSArray *activityItems = @[
[AQSEmailActivityRecipient recipientWithEmailAddress:@"[email protected]"]
];To set CC or BCC recipients, just specify recipient's type.
NSArray *activityItems = @[
[AQSEmailActivityRecipient recipientWithEmailAddress:@"[email protected]" withType:AQSEmailActivityTypeCC]
];Combile all of them, you can represent an email whose title is Title, body is Body, to is [email protected] as follows.
NSArray *activityItems = @[
[AQSEmailActivityTitle titleWithTitle:@"Title"],
[AQSEmailActivityRecipient recipientWithEmailAddress:@"[email protected]"],
@"Body"
];pod "AQSActionEmailActivity"
https://dl.dropboxusercontent.com/u/7817937/___doc___AQSActionEmailActivity/html/index.html