I have set up an animation in the following way (self is an UIImageView, myImages an Array of UIImages):
self.animationImages = myImages;
self.animationDuration = 50;
self.animationRepeatCount = 0;
[self startAnimating];
During the animation I'd like to check the current image. I tried it the following way
if([self image]==[UIImage imageNamed:@"image1.png"]);
but this does not work. Is there a straight forward way for this? Can I keep track of which image is shown during the animation?