Wednesday 8 June 2011

How To Animated Image on the View.

- (void)viewDidLoad
{
[super viewDidLoad];
UIImageView *imageView=[[UIImageView alloc]initWithFrame:CGRectMake(0.0,0.0 ,320.0, 213.0)];
imageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"Infra.jpg"],
[UIImage imageNamed:@"ArcGate.jpg"],
[UIImage imageNamed:@"Infra.jpg"],nil];
imageView.animationRepeatCount = 67;
imageView.animationDuration = 30;
[imageView startAnimating];
[self.view addSubview:imageView];
[imageView release];
}

No comments:

Post a Comment