Here i am using the uiimage-from-animated-gif library to show an animated GIF through a UIImage
. It's working, but I need to stop the animation, imageView
after one complete revolution.
The following code:
NSURL *url = [[NSBundle mainBundle] URLForResource:@"dove-animate" withExtension:@"gif"];
self.imageView.image = [UIImage animatedImageWithAnimatedGIFData:[NSData dataWithContentsOfURL:url]];
Thanks in advance.