2
我使用UIImageView的animationImages来显示一秒钟内的一些帧。我想展示动画,然后让它停留在最后一帧。在操作系统3.1.3,这工作得很好:在最后一帧停止UIImageView动画
[self setAnimationRepeatCount:1];
[self setAnimationDuration:1];
[self startAnimating];
// auto set the last image in the frame
[self setImage:[UIImage imageNamed:[NSString stringWithFormat:@"frame-%d_29.png", self.frameSet]]];
当动画完成后,它会显示图像。 OS 4没有这样的运气。我已经尝试设置NSTimer并在完成时设置静态帧,但是有时会使用该方法显示闪烁。任何解决方案