1

我有用户的 QA 代码取决于 Web 视图中的名称、Id。现在我想像我这样尝试过的图像视图(或 UIImage)中那样获取 Web 视图 QA 代码,

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

但我只得到了网络视图框架,但没有显示内容(QA 代码图像)。请给我建议。谢谢

4

0 回答 0