序列帧动画一般使用步骤:
//0、判断图片是否已加载
if (self.annimImg.isAnimating){
return;
}
//1、设置动画数组
self.annimImg.animationImages = imageArray;
//2.设置播放次数(1次)
self.annimImg.animationRepeatCount = 1;
//3.设置播放时间
self.annimImg.animationDuration = count * 0.06;
[self.annimImg startAnimating];
//4.动画放完后清除内存
[self performSelector:@selector(showAnomotionWithCount:animotionName:) withObject:nil afterDelay:1];
本文介绍了实现序列帧动画的一般步骤,包括判断图片是否已加载、设置动画数组、设定播放次数为一次及播放时间,并在动画结束后清除内存。
407

被折叠的 条评论
为什么被折叠?



