我想截取 UIImageView 的屏幕截图,但问题是我希望它的宽度是原始尺寸的两倍。一些忠告?
这是我当前的代码:
UIGraphicsBeginImageContext(myImageView.bounds.size);
[myImageView.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();