0

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

3
  • Also, this probably assumes Cocoa and should be tagged as such. Commented Nov 3, 2010 at 21:01
  • iOS, for iPhone. I'm developing with cocos2d. Commented Nov 3, 2010 at 21:14
  • Retagged: Added iphone and cocoa-touch. Commented Nov 3, 2010 at 22:06

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

4 Comments

Thanks for the answer, but I was wondering how I can attach the screenshot into an email.
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/…
Thanks for the help and second reply! I really appreciate it.
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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.