3
这里我使用uiimage-from-animated-gif库来显示一个动画GIF通过UIImage
。它正在工作,但我需要在完成一次革命后停止动画,imageView
。停止GIF动画
下面的代码:
NSURL *url = [[NSBundle mainBundle] URLForResource:@"dove-animate" withExtension:@"gif"];
self.imageView.image = [UIImage animatedImageWithAnimatedGIFData:[NSData dataWithContentsOfURL:url]];
在此先感谢。
试试这个http://stackoverflow.com/questions/17864292/uiimageviewanimatedgif-always-loops和http://stackoverflow.com/questions/9744682/display-animated-gif-in-ios – 2014-10-08 08:49:22