I would like to take the image that is on my iPad’s screen and export it as a JPG, PNG or PDF file.
In simpler terms, the user created something on the screen, he clicks ‘export to PNG’ for example, and then a PNG file is created.
How do I go about doing that?
I wrote this category for UIView, taken with some help from unremembered sources: