0

How do you save a screenshot you take from your code, and put it into an email within your app?

Björn Marschollek
  • 9,899
  • 9
  • 40
  • 66
Joethemonkey101
  • 45
  • 2
  • 11

1 Answers1

5

I did a bit of research of other articles on Stack Overflow.

This shows how to take a screenshot: how to take a screenshot of the iPhone programmatically?

You may also want to take a look at this, its a quick and easy method provided by Apple: http://developer.apple.com/library/ios/#qa/qa2010/qa1703.html

This article shows how to send an email: How can I send mail from an iPhone application

halfer
  • 19,824
  • 17
  • 99
  • 186
Jesse Dunlap
  • 1,280
  • 1
  • 16
  • 22
  • Thanks for the answer, but I was wondering how I can attach the screenshot into an email. – Joethemonkey101 Nov 03 '10 at 22:29
  • Check this out, it shows you how to add an attachment using the methods shown in the second link: http://developer.apple.com/library/ios/#documentation/MessageUI/Reference/MFMailComposeViewController_class/Reference/Reference.html – Jesse Dunlap Nov 03 '10 at 23:49
  • Thanks for the help and second reply! I really appreciate it. – Joethemonkey101 Nov 04 '10 at 00:24
  • Is it possible for you to post the code of how you got this to work. I'm looking for the code once I have the image and want to send it. Thanks – BDGapps Aug 16 '11 at 02:47