views:

37

answers:

2

I am finding that isAnimating is returning true even after it has completed the max # of loops and stopped animating. However once you move the UIImageView, it will suddenly update and change to false.

Here are the important bits of my code: I set up the animation in the standard way:

UIImageView* newImageView = ...
newImageView.animationImages = imageArray;
newImageView.animationDuration = 1.0;
newImageView.animationRepeatCount = 1;
...
[newImagView startAnimating];

Elsewhere in the code I am checking whether the animation has come to completion with:

if (not [newImageView isAnimating])
{
...
}

Seconds after the animation has stopped, isAnimating will still return true.

However if the newImageView has been updated in some way (in my case moving it), it will suddenly return false. Which seems unrelated, and points towards this being a bug.

Has anyone run into this or know a work around?

A: 

I don't have a solution - but I have encountered the same problem. Put me on the mailing list!

A: 

I tested it compiling with iphone 4.1 SDK and runngin thaton a 3.1.x device.

isAnimating on device works but not with any iphone simualtor 3.2,4.0,4,1

festival