0
화면을 캡처하려고하는데 이미지 뷰에 하나의 이미지 만있을 때 완벽하게 작동하지만 .... UIImageView를 애니메이션화하면 빈 스크린 샷 ..UIImageView의 스크린 샷을 캡쳐하는 방법
CGRect rect = [self.view bounds];
UIGraphicsBeginImageContext(rect.size);
CGContextRef context = UIGraphicsGetCurrentContext();
[self.view.layer renderInContext:context];
UIImage *capturedScreen = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(capturedScreen, nil, nil, nil);