How to check image during animation
Posted
by TomTom
on Stack Overflow
See other posts from Stack Overflow
or by TomTom
Published on 2010-04-09T22:38:29Z
Indexed on
2010/04/09
22:43 UTC
Read the original article
Hit count: 220
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?
© Stack Overflow or respective owner