Skip to content

Instantly share code, notes, and snippets.

@twoism
Created February 3, 2009 15:08
Show Gist options
  • Save twoism/57562 to your computer and use it in GitHub Desktop.
Save twoism/57562 to your computer and use it in GitHub Desktop.
UIGraphicsBeginImageContext(self.bounds.size);
[theView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage,nil,NULL,NULL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment