Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIGraphicsBeginImageContextWithOptions(self.captureView.frame.size, YES, 0.0);
- // CGContextRef context = UIGraphicsGetCurrentContext();
- // [self.captureView.layer renderInContext:context];
- [self.captureView drawViewHierarchyInRect:weakSelf.captureView.bounds afterScreenUpdates:YES];
- UIImage* screenShot = UIGraphicsGetImageFromCurrentImageContext();
- UIGraphicsEndImageContext();
- NSLog(@"saving image");
- [self saveImageToFolder:self.tempFolderPath image:screenShot];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement