I have more then 100 images which I use to load in imageView using following code :
[imgV setImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@%d.png",prefixName,counter]]];
where above code will be called each 0.03s and counter is number for loading different images.
Above idea gives me animation effect, where it use to load different image on 0.03s.
But when the images are more it use to crash.
What should I do ? Or How do I maintain memory in my case? any idea?
Try to use
instead of
Also UIImageView have setAnimationImages method