How do you save a screenshot you take from your code, and put it into an email within your app?
- Also, this probably assumes Cocoa and should be tagged as such.Justin– Justin2010-11-03 21:01:21 +00:00Commented Nov 3, 2010 at 21:01
- iOS, for iPhone. I'm developing with cocos2d.Joethemonkey101– Joethemonkey1012010-11-03 21:14:01 +00:00Commented Nov 3, 2010 at 21:14
- Retagged: Added iphone and cocoa-touch.Björn Marschollek– Björn Marschollek2010-11-03 22:06:19 +00:00Commented Nov 3, 2010 at 22:06
Add a comment |
1 Answer
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
4 Comments
Joethemonkey101
Thanks for the answer, but I was wondering how I can attach the screenshot into an email.
Jesse Dunlap
Check this out, it shows you how to add an attachment using the methods shown in the second link: developer.apple.com/library/ios/#documentation/MessageUI/…
Joethemonkey101
Thanks for the help and second reply! I really appreciate it.
BDGapps
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