【发布时间】:2011-08-03 10:03:55
【问题描述】:
我想知道是否有任何技巧可以在后台对 UIWebView 进行“屏幕捕获”?为了澄清更多,我可以使用以下方法捕获 UIWebView:
UIGraphicsBeginImageContext(webView.frame.size);
[webView.layer renderInContext: UIGraphicsGetCurrentContext()];
viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
theImageView.image = viewImage;
但我确实必须将屏幕上显示的 UIWebView 才能捕获它,我只是想知道我是否可以在后台执行此操作?
谢谢, 劳伦斯
【问题讨论】:
标签: iphone uiwebview uiimage screen capture