次のコードを使用してスクリーンショットを撮っています。
UIGraphicsBeginImageContext(contentView.frame.size);
[contentView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, self,@selector(savedImage:didFinishSavingWithError:contextInfo:),nil);
UILabel'sこれに関する問題は、角が丸くなっている私の画像を正しくキャプチャしていないように見えることです。
lbl.layer.cornerRadius=radius;
これは、次のようになります。

ビューがキャプチャされると、次のように表示されます。

どうしたの??maskToBoundsと の組み合わせを試しましたclipsToBoundsが、何も機能していません。角を丸くしてビューをキャプチャできる別の方法があるかもしれません。
アドバイスをありがとう!