Changing UIImageView animation speed

Posted by Nikolas Stephan on Stack Overflow See other posts from Stack Overflow or by Nikolas Stephan
Published on 2009-04-19T18:20:28Z Indexed on 2010/03/29 11:03 UTC
Read the original article Hit count: 612

Filed under:
|
|

I am using the UIImageView to animate a bunch of images. I know that I can change the speed by altering animationDuration, but that doesn't seem to take effect until the animation is restarted.

My problem is that beside not really wanting to have to restart the animation as this limits me to only being able to change the speed once per cycle, there also doesn't seem to be a way to find out what frame is currently being shown and I would therefore have to rely on a timer to "guess" which one it is.

So my question is whether there is a way to change the speed without restarting the animation and if not is there some way I could avoid the aforementioned problem? I'm not too keen to write my own animation class, but may end up having to if there isn't a nicer solution.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiimageview