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並在完成時設置靜態幀,但是有時會使用該方法顯示閃爍。任何解決方案