NSArray *gifArray = [NSArray arrayWithObjects:[UIImage imageNamed:@"lanya1"],[UIImage imageNamed:@"lanya2"],[UIImage imageNamed:@"lanya3"],[UIImage imageNamed:@"lanya4"], nil]; self.gifImageView.animationImages = gifArray; //动画图片数组 self.gifImageView.animationDuration = 1; //执行一次完整动画所需的时长 self.gifImageView.animationRepeatCount = 0; //动画重复次数