Snippet: screen snapshot

I have just found this piece of code, great for having in your snippet library. Quick and easy way of doing a screenshot.

After doing this, you can combine it with UIImage+ImageEffects for a nice blur effect.