lfnovo's Avatar
lfnovo 4
14 Asked
10 Answered
3 Best
0
No one has voted on this question yet :(
2 years, 8 months ago

How to generate a screenshot that looks exactly as a MKMapView component available on the view?

I have an iPhone application I am developing. At some point in the app, I have a MapView component (MKMapView) that shows a map with a couple of placemarks. I need to generate a screenshot of that map exactly how it looks and exactly the size it is and save it as a gif file. Anyone can walk me through how to do it?
Tip for best answer: M$10.00
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

What is Your Answer?

0
0
0

3 Answers

0
wdawe's Avatar
wdawe | 2 years, 8 months ago
8
Press and hold the Home button, then press the sleep button on the top right of the phone. Your screen shot will be added to the camera roll as a jpg file, you can convert it to a gif with your favourite image manipulation program.

http://image3.examiner.com/images/blog/wysiwyg/image/iPhoneScreenshot.jpg

Unfortunately I don't have an iPhone so I can't verify these instructions but bother references are reputable sites.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$
goldy's Avatar
goldy | 2 years, 8 months ago Report

I'm pretty sure he wants the app to automatically load the map element and take the image its self, unfortunately I'm no help as i haven't done any iphone development and don't really plan to.

Report Abuse

Post Reply Cancel
1
kenji's Avatar
kenji | 2 years, 8 months ago
3
I would check out the code sample over at stackoverflow.com.

http://stackoverflow.com/questions/692464/emailing-full-screen-of-iphone-app/#692927

I personally build apps via web framework toolkits, so I'm not as versed in using Objective C to create native iPhone apps. So the above liked info might not be of any help.

I do know that you want to stay away from using the private API "UIGetScreenImage" to do screen grabs. Using the private API on the iPhone will more than likely get your app rejected by Apple.

See: Peeps Rejected for Private API (even though they didn't use a private API call.)
http://landonf.bikemonkey.org/code/iphone/Apple_Lesson_Huh.20081213.html

If you are interested, here's info on using the private iPhone API:
http://aralbalkan.com/2106

Hope this helps.

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel
0
dowodyaldowody's Avatar
dowodyaldowody | 2 years, 8 months ago
0

You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.

M$

Report Abuse

Post Reply Cancel

Learn something new with our FREE educational apps!

Private lessons in the comfort of your own home. Get back in shape or finally pick up a guitar with our great experts guiding you the whole way!
Learn Guitar
Learn Hip Hop
Learn Pilates