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?