What is the best or recommended technique for animating PNG Sequences.
Heres what I\'ve learned:
Do it Manually
Using M
Example to animate arrows
UIImage* img1 = [UIImage imageNamed:@"fleche1.png"];
UIImage* img2 = [UIImage imageNamed:@"fleche2.png"];
NSArray *images = [NSArray arrayWithObjects:img1,img2, nil];
UIImageView* imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, 160.0, 160.0)];
[imageView setAnimationImages:images];
[imageView setAnimationRepeatCount:100];
[imageView setAnimationDuration:3.0];
imageView.center = myView.center;
[imageView startAnimating];
[myView addSubview:imageView];
[imageView release];