私uiimageviewは600x600uitexviewで、200x200uiviewにロードされています。
uiviewこれをサイズと同じ600x600にエクスポートしたいと思いuiimageviewます。
ただし、以下のコードを使用すると、400x400のサイズしか生成できません。これは、の網膜サイズですuiview。
これを実現できるコードはありますか?
UIGraphicsBeginImageContextWithOptions(outputView.bounds.size, outputView.opaque, 2);
[outputView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();