Q:

iOS: UIImageView Slideshow

For an iOS app, I would like a UIImageView to have multiple images in a slideshow. I also want to be able to select the active photo on-the-fly. Is there an easy way to do this? (Specific code would be nice, but a hint or two would also be appreciated).
Thanks!

A:

I made a small library for this purpose, very flexible with tons of options : https://github.com/kirualex/KASlideShow
A simple slideshow declaration looks like this :
_slideshow.delegate = self;
[_slideshow setDelay:1]; // Delay between transitions
[_slideshow setTransitionDuration:.5]; // Transition duration
[_slideshow setTransitionType:KASlideShowTransitionFade]; // Choose a transition type (fade or slide)
[_slideshow setImagesContentMode:UIViewContentModeScaleAspectFill]; // Choose a content mode for images to display
[_slideshow addImagesFromResources:@[@"test_1.jpeg",@"test_2.jpeg",@"test_3.jpeg"]]; // Add images from resources
[_slideshow addGesture:KASlideShowGestureTap]; // Gesture to go previous/next directly on the image

