I want to show an animated ".gif" in a ImageView
.
Now I managed it like here: click
with UIImage+animatedGIF
. But if it begins to animate 2 gifs it uses 45Mb of memory I think that is very much for 2 gif's with 100kb. What can I do?
Code to start animation here:
NSString *path = [[NSBundle mainBundle]pathForResource:@"animation" ofType:@"gif"];
NSURL *url = [[NSURL alloc] initFileURLWithPath:path];
_testImage.image = [UIImage animatedImageWithAnimatedGIFURL:url];
_test1.image = [UIImage animatedImageWithAnimatedGIFURL:url];