I'm trying to make a slide show in an image view that also uses fade effects.
so far it has done:
- (void)viewDidLoad { [super viewDidLoad]; animationView = [[UIImageView alloc] initWithFrame:self.view.frame]; animationView.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed:@"photo1.jpg"], [UIImage imageNamed:@"photo2.jpg"], [UIImage imageNamed:@"photo3.jpg"], nil]; animationView.animationDuration = 5; animationView.animationRepeatCount = 0; [animationView startAnimating]; [self.view addSubview:animationView]; }
the images appear one after another, with a delay of 5 seconds, what do I want now to make them disappear and disappear every time the image appears, any suggestions on this?
Thank you in advance for your help.
source share