No, UIImageView does not cache images. image property is declared as a hold, so when you set a new image, then imageView sends a release message to the old image and retain to the new one.
The easiest way to animate a UIImageView is to set an array of images to the animationImages property and call the startAnimating method
imageView.animationImages = [NSArray arrayWithObjects:[UIImage imageNamed:@"1.png"], ..., nil]; imageView.animationDuration = 2.0f; [imageView startAnimating];
beryllium
source share