ios--->帧动画

帧动画

        NSMutableArray<UIImage *> *imageArr=[NSMutableArray array];
    for(int i=0;i<20;i++){
        NSString *imagename=[NSString stringWithFormat:@"%d",i+1];
        UIImage *image=[UIImage imageNamed:imagename];
        [imageArr addObject:image];
    }
    self.animateview.animationImages=imageArr;
    self.animateview.animationRepeatCount=0;
    self.animateview.animationDuration=1.0;
    [self.animateview startAnimating];
posted @ 2017-10-30 15:53  技术-刘腾飞  阅读(100)  评论(0编辑  收藏  举报