3

I've seen some apps that allow you to share content with ios's mail, messages, print and copy.

I see there is a project called sharekit that does something similar but integrates social network sharing. Personally I don't need the social sharing, so sharekit it probably overkill.

I just need to popup an actionsheet that will allowe me to pass some text for example to the mail app or the messages app.

totalitarian
  • 3,606
  • 6
  • 32
  • 55

3 Answers3

3

What you are looking for is the MessageUI.framework.

This framework contains:

You will have to write the action sheet you self, but after the user made there choice you can create an instance of MFMailComposeViewController or MFMessageComposeViewController and present it to the user. Be aware that you will need to implement the MFMailComposeViewControllerDelegate and/or MFMessageComposeViewControllerDelegate to dismiss the view.

rckoenes
  • 69,092
  • 8
  • 134
  • 166
3

Look my answer here:

https://stackoverflow.com/a/13975189/736384

I wrote about the new UIActivity control, It let you do all you are looking for.

Community
  • 1
  • 1
Luis Ascorbe
  • 1,985
  • 1
  • 22
  • 36
2

If all you want to do is integrate with Mail or Messages, use the MFMailComposeViewController and MFMessageComposeViewController classes respectively.

If you want to add support for Copy, Print, and other such "activities', take a look at the documentation for UIActivity and UIActivityViewController.

melsam
  • 4,947
  • 1
  • 22
  • 23