我使用這個方法來製作動畫的UIImageView
:的UIImageView動畫趕不上最後一幀
[imageView stopAnimating];
imageView.animationImages = set;
imageView.animationDuration = 0.4;
imageView.animationRepeatCount = 1;
[imageView startAnimating];
即設定爲圖像的NSMutableArray
。 我的問題是,當動畫完成後,UIImageView不會保留set
的最後一幀,並將動畫之前在圖像視圖中的圖像恢復。
我怎麼能讓最後一幀成爲imageview的圖像?
你在使用CoreAnimation嗎? – TompaLompa 2012-04-20 12:28:47
我只使用這種方法 – MTA 2012-04-20 12:30:14
imageView.image = [set objectatIndex:[[set count] -1]];在開始動畫之前放置它 – Bala 2012-04-20 12:36:24