Saturday, 7 September 2013

Objective-C: Capture screenshot of all views within custom frame

Objective-C: Capture screenshot of all views within custom frame

I have a game where users can create custom levels and upload them to my
server for other users to play and I want to get a screenshot of the
"action area" before the user tests his/her level to upload to my server
as sort of a "preview image".
I know how to get a screenshot of the entire view, but I want to define it
to a custom frame. Consider the following image:

I want to just take a screenshot of the area in red, the "action area."
Can I achieve this?

No comments:

Post a Comment