我创建了一个动画形象,并在适当的UIImageView动画:如何将动画图像保存到iPhone的照片专辑?
- (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];
}
但如果保存到相册上,它不能动画agian:
UIImageWriteToSavedPhotosAlbum(animationImage,
self,
@selector(imageSavedToPhotosAlbum:didFinishSavingWithError:contextInfo:),
nil);
那么,有什么方法解决将动画图像保存到相册中?
特别感谢!
因此,如何在iOS4的/ 5创建动画形象照片相册?或者如何用图像创建.mov文件,然后将.mov保存到照片专辑?谢谢! – OpenThread
我已经更新了答案 – doNotCheckMyBlog
谢谢,但似乎在参考中,mov呈现为OpenGLESView,没有图像呈现为mov – OpenThread