UIImageView
subclass that can change images with Ken Burns effect. This image view is good for some kind of landing page or for unusual backgrounds.
All images from Unsplash.
To support KBImageView
in your application you must set delegate
for it. This delegate must confirm to protocol KBImageViewDelegate
. And implement two required methods:
numberOfImagesInImageView:
- must return number of all images in slide show. Called every time before image going to changed.imageView:imageForIndex:
- must return image for current index. Also called every time before image going to changed.
KBImageView
does not stores all image, that was presented before. Just only one current image.
Add pod 'KBImageView'
to your Podfile.
Just copy KBImageView
class to your project.
- Xcode 7.0
- iOS 7.0+
KBImageView is available under the MIT license. See the LICENSE file for more info.