Objective-序列帧动画一般使用步骤:

来源:互联网 发布:java 停止线程 编辑:程序博客网 时间:2024/04/30 15:29

序列帧动画一般使用步骤:

 

//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.annimImgstartAnimating];

    //4.动画放完后清除内存

    [selfperformSelector:@selector(showAnomotionWithCount:animotionName:)withObject:nilafterDelay:1];

0 0