With the release of iOS 6 I\'d like to revisit the original question here: Access to Apple's built in Icons?
For example, when you hit the \'action\' button to s
For just showing the share UI with icons, you probably want UIActivityViewController
.
NSString* someText = self.textView.text;
NSArray* dataToShare = @[someText]; // ...or whatever pieces of data you want to share.
UIActivityViewController* activityViewController =
[[UIActivityViewController alloc] initWithActivityItems:dataToShare
applicationActivities:nil];
[self presentViewController:activityViewController animated:YES completion:^{}];
It looks like:
Documentation here.
The problem with using UIActivity for sending mail is that you cannot set the subject field's text, recipients, etc. like you can with MFMailComposeViewController
I've been trying to do a workaround to set the subject field, but have not found a solution yet.
UIActivity
class provides built-in activity types for mail, messaging, ...