0

I save a webview screenshot to a file using this method:

UIGraphicsBeginImageContext(webview.bounds.size);     
[webview.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *screenImage = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();

[imageData writeToFile:imagePath atomically:YES]; 

But sometimes it's have a gray area in it. How i remove that a gray area?

UIWebView Screenshot Files

codecarver
  • 249
  • 2
  • 10

0 Answers0