アニメーション画像を作成しましたが、UIImageView で適切にアニメーション化されます。
- (void)viewDidLoad
{
[super viewDidLoad];
UIImage *image1 = [UIImage imageNamed:@"apress_logo"];
UIImage *image2 = [UIImage imageNamed:@"Icon"];
UIImage *animationImage = [UIImage animatedImageWithImages:[NSArray arrayWithObjects:image1, image2, nil] duration:0.5];
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
imageView.image = animationImage;
[self.view addSubview:imageView];
}
しかし、写真アルバムに保存すると、アニメーション化できませんでした:
UIImageWriteToSavedPhotosAlbum(animationImage,
self,
@selector(imageSavedToPhotosAlbum:didFinishSavingWithError:contextInfo:),
nil);
アニメーション画像を写真アルバムに保存する解決策はありますか?
特別な感謝!