// 同过把图片存入数组里面实现图片的动态效果
// UIImageView
NSMutableArray *mImagesArr = [NSMutableArray array];
for (int i = 0; i<6; i++)
{
NSString *str = [NSString stringWithFormat:@"%d.tiff",i+1];// 添加的图片的名字
UIImage *image = [UIImage imageNamed:str];
[mImagesArr addObject:image];
}
imageview = [[UIImageView alloc] initWithFrame:CGRectMake(60, 188, 200, 200)];
imageview.image = [UIImage imageNamed:@"1.tiff"];
// 动画效果
imageview.animationImages = mImagesArr;
// 控制播放速度
imageview.animationDuration = 2.f;
[self.view addSubview:imageview];
// 让图片动起来
[imageview startAnimating];
// [imageview release];