DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Capture View As Image
// Capture a view as an image
UIGraphicsBeginImageContext( view.bounds.size ); [view.layer renderInContext:UIGraphicsGetCurrentImageContext()]; UIImage *renderedImage = UIGraphicsImageWithCurrentImageContext(); UIGraphicsEndImageContext();





