Я сохраняю скриншот веб-просмотра в файл, используя этот метод:
UIGraphicsBeginImageContext(webview.bounds.size);
[webview.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *screenImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[imageData writeToFile:imagePath atomically:YES];
Но иногда в нем есть серая область.Как убрать эту серую область?
