简单的播放过一组图片动画,使用对象的方法,代码如下:
//1、给图片视图设置一组图片
[_imageView setAnimationImages:array];
//2、设置动画播放时长
[_imageView setAnimationDuration:1.0];
//3、设置动画播放次数
//[_imageView setAnimationRepeatCount:1];
//4、开始动画
[_imageView startAnimating];
//停止动画
//[_imageView stopAnimating];