我正在使用 UIGraphicsBeginImageContextWithOptions 来获取当前显示的屏幕(UITable)的屏幕抓取。
这是我的代码:
UIGraphicsBeginImageContextWithOptions(self.view.frame.size, self.view.opaque, 0.0);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
然后我使用图像对象作为我屏幕的屏幕抓取。
我的问题是我希望屏幕抓取包含额外的 100 像素当前未显示的数据(如果我向下滚动它将显示)。
我怎样才能做到这一点?