I'm using UIImageView's animationImages to show some frames over a second. I want to show the animation then have it rest on the final frame. In OS 3.1.3, this worked fine for that:
[self setAnimationRepeatCount:1];
[self setAnimationDuration:1];
[self startAnimating];
// auto set the last image in the frame
[self setImage:[UIImage imageNamed:[NSString stringWithFormat:@"frame-%d_29.png", self.frameSet]]];
When the animation was done it would display the image. No such luck with OS 4. I've tried setting an NSTimer and setting the static frame when that finishes, but there's a noticable flicker sometimes with that method. Any solution?