I have around 30 images. I want to have a slideshow running of these images without user intervention. Prime requirements are -
UILabel
. So it's just not image slideshow.My biggest problem is how to chain 20 images into this fadein/fadeout animation? How do we get this done in iOS?
You can use an UIView containing a different UIImageView for each image you have to show on your slideshow and create a nested animation block. Something like this:
[UIView animateWithDuration:1.0
animations:^{ /* animations */ }
completion:^(BOOL finished){ [UIView animateWithDuration:1.0
animations:^{ /* animations */ }
completion:^(BOOL finished){ [UIView animateWithDuration:1.0
animations:^{ /* animations */ }
completion:^(BOOL finished){}]; }]; }];