isAnimating回报故障的的UIImageView为iPhone [英] isAnimating return is faulty for UIImageView for iPhone
问题描述
我发现它已经完成了循环的最大#和停止动画甚至之后isAnimating是返回true。然而,一旦你移动的UIImageView,它会突然更新和更改为false。
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.
下面是我的code的重要位:
我设置了动画的标准方式:
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];
在别处在code我检查动画是否已经完成与:
Elsewhere in the code I am checking whether the animation has come to completion with:
if (not [newImageView isAnimating])
{
...
}
秒动画停止后,isAnimating仍然会返回true。
Seconds after the animation has stopped, isAnimating will still return true.
但是,如果newImageView以某种方式更新(在我的情况下移动它),它会突然返回false。这似乎无关,并指出对这个是一个错误。
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?
推荐答案
我测试了它与iPhone 4.1 SDK和runngin萨通一3.1.X设备进行编译。
I tested it compiling with iphone 4.1 SDK and runngin thaton a 3.1.x device.
isAnimating设备上工作,但不与任何iPhone simualtor 3.2,4.0,4,1
isAnimating on device works but not with any iphone simualtor 3.2,4.0,4,1
这篇关于isAnimating回报故障的的UIImageView为iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!