标签:
NSArray *myImages = [NSArray arrayWithObjects: [UIImage imageNamed:@"1"],
[UIImage imageNamed:@"2"],
nil];
UIImageView *imageView=[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.window.frame.size.width, self.window.frame.size.height)];
imageView.animationImages = myImages;
imageView.animationDuration = 1.5; //浏览整个图片一次所用的时间
imageView.animationRepeatCount = 0; // 动画重复次数,0表示一直重复着
[imageView startAnimating];
[self.window addSubview:imageView];
[imageView release];
标签:
原文地址:http://www.cnblogs.com/hsxblog/p/4937754.html