How do you save a screenshot you take from your code, and put it into an email within your app?
Asked
Active
Viewed 815 times
0

Björn Marschollek
- 9,899
- 9
- 40
- 66

Joethemonkey101
- 45
- 2
- 11
-
Also, this probably assumes Cocoa and should be tagged as such. – Justin Nov 03 '10 at 21:01
-
iOS, for iPhone. I'm developing with cocos2d. – Joethemonkey101 Nov 03 '10 at 21:14
-
Retagged: Added iphone and cocoa-touch. – Björn Marschollek Nov 03 '10 at 22:06
1 Answers
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
-
-
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