如何将动画系列导入我的iPhone应用程序?

时间:2009-08-25 20:37:01

标签: iphone gif animated

我试图将GIF放入我的iphone应用程序中,但它只显示了第一帧。我读到你必须用UIimageView将这个编码放到我的应用程序中。

UIImage *blur5 = [UIImage imageNamed:@"Picture 12.jpg"];
UIImage *blur6 = [UIImage imageNamed:@"Picture 13.jpg"];

self.imageView.animationImages = [[NSArray alloc] initWithObjects:blur5, blur6, nil];
self.imageView.animationRepeatCount = 2;
[self.imageView startAnimating];

但究竟在哪里以及如何做到这一点?每次我尝试运行它,它都会给我错误和Xcode冻结。

0 个答案:

没有答案
相关问题