图片数组形成动画(UIImageView)
UIImage *image = [UIImage imageNamed:@"iphone"];
//创建UIImageView来显示图片
self.firstImageView = [[UIImageView alloc] initWithImage:image];
self.firstImageView.frame = CGRectMake(100, 100, 79 , 106);
//图片动画
NSMutableArray *images = [NSMutableArray array];
for (int i = 1 ; i < 41; i++) {
UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"2250_3650903_179fb89ae279fae-%d(被拖移).tiff",i]];
[images addObject:image];
}
//设置图片动画的图片数组
self.firstImageView.animationImages = images;
//设置图片动画的持续时间