//连续动画:一个接一个地显示一系列的图像
NSArray *myImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"d.jpg"],
[UIImage imageNamed:@"c.jpg"],
[UIImage imageNamed:@"b.jpg"],
[UIImage imageNamed:@"a.png"], nil];
UIImageView *myAnimatedView = [[UIImageView alloc] initWithFrame:
[UIScreen mainScreen].bounds];
myAnimatedView.animationImages = myImages; //animationImages属性返回一个存放动画图片的数组
myAnimatedView.animationDuration = 3; //浏览整个图片一次所用的时间
myAnimatedView.animationRepeatCount = 0; // 0 = loops forever 动画重复次数
[myAnimatedView startAnimating];
[self.view addSubview:myAnimatedView];
[myAnimatedView release];
原文地址:http://blog.csdn.net/mhtios/article/details/39471901