The goal of this project is to create a UIView
that can generate a Ken Burns transition when given an array of UIImage
objects.
To use it, you simply need to an an instance of JBKenBurnsView
and call this method to start the action:
[self.kenBurnsView animateWithImages:slideshowImages
transitionDuration:15.0
loop:YES
inLandscape:YES];
- (void) animateWithImages:(NSArray*)images transitionDuration:(float)time loop:(BOOL)isLoop isLandscape:(BOOL)isLandscape;
Animate an UIImage
array.
images:
NSArray of UIImages.time:
Time in seconds for the transition between images.isLoop:
The animation will start again when ended.isLandscape:
If true optimized to show in Landscape mode.
- (void) animateWithURLs:(NSArray *)urls transitionDuration:(float)duration loop:(BOOL)shouldLoop isLandscape:(BOOL)inLandscape;
Animate an NSString
array with urls to the pictures.
urls:
NSArray
ofNSString
with urls.time:
Time in seconds for the transition between images.isLoop:
The animation will start again when ended.isLandscape:
If true optimized to show in Landscape mode.
- Need to allow device rotation.
- Improvements on image transition effects.
-- ###SweetBits, welcome to the candy factory.###