Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. UIGraphicsBeginImageContextWithOptions(self.captureView.frame.size, YES, 0.0);
  2. // CGContextRef context = UIGraphicsGetCurrentContext();
  3. // [self.captureView.layer renderInContext:context];
  4. [self.captureView drawViewHierarchyInRect:weakSelf.captureView.bounds afterScreenUpdates:YES];
  5. UIImage* screenShot = UIGraphicsGetImageFromCurrentImageContext();
  6. UIGraphicsEndImageContext();
  7. NSLog(@"saving image");
  8. [self saveImageToFolder:self.tempFolderPath image:screenShot];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement