iOS で UIView スクリーン キャプチャを取得しようとしています。
私の見解では、アニメーション付きの 2 つの UIImageView があります。
ビューをキャプチャするために使用するコードは次のとおりです。
UIGraphicsBeginImageContextWithOptions(self.view.bounds.size, NO, 1.0);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
// Read the UIImage object
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(image, self,
@selector(image:didFinishSavingWithError:contextInfo:), nil);
結果は、背景と 1 つの UIImageView のみを持つイメージです。両方の ImageView は常に動いています。複数の写真を撮る場合、UIImageView は毎回同じ位置にあります。