Skip to content

Instantly share code, notes, and snippets.

@muukii
Created March 18, 2014 05:26
Show Gist options
  • Save muukii/9614026 to your computer and use it in GitHub Desktop.
Save muukii/9614026 to your computer and use it in GitHub Desktop.
UIGraphicsBeginImageContextWithOptions(self.bounds.size, NO, self.window.screen.scale);
[self.imageView drawViewHierarchyInRect:self.frame afterScreenUpdates:YES];
UIImage *snapshotImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment