Animation
Hello, I have a block of animation code and I need to know how to fade between each image. this is my code:
Code:
- (void) viewWillAppear(BOOL)animated{
[super viewWillAppear:animated];
[self performSelector:@selector(startAnimation) withObject:nil afterDelay:0];
}
- (void) startAnimation{
//self.view.backgroundColor = [UIColor initWithPatternImage:];
ringView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"Bear-Background.jpg"],
[UIImage imageNamed:@"Lion-Background.jpg"],
[UIImage imageNamed:@"Donkey-Background.jpg"],
[UIImage imageNamed:@"Goat-Background.jpg"],
[UIImage imageNamed:@"F18-Background.jpg"],
[UIImage imageNamed:@"Jet-Airplane-Background.jpg"],
[UIImage imageNamed:@"Car Background.png"],
[UIImage imageNamed:@"FireTruck Background.png"],nil];
ringView.animationRepeatCount = 0;
[ringView setAnimationDuration:12];
[ringView startAnimating];
}
http://developer.apple.com/mac/library/d...TP40006085
Specifically, what you want to do is fade your images in while the existing one is fading out.
I think code sample 3 shows just that.
(And before people say it, yes CA is a pain at times, but if you keep it simple, it's remarkably quick and dirty and can save you a lot of time on simple stuff).
Specifically, what you want to do is fade your images in while the existing one is fading out.
I think code sample 3 shows just that.
(And before people say it, yes CA is a pain at times, but if you keep it simple, it's remarkably quick and dirty and can save you a lot of time on simple stuff).

