此项目的目标是创建一个可以在给定一组 UIImage
对象时生成 Ken Burns 过渡的 UIView
。
要使用它,您只需创建一个 JBKenBurnsView
实例并调用此方法以启动操作
[self.kenBurnsView animateWithImages:slideshowImages
transitionDuration:15.0
loop:YES
inLandscape:YES];
- (void) animateWithImages:(NSArray*)images transitionDuration:(float)time loop:(BOOL)isLoop isLandscape:(BOOL)isLandscape;
动画一个 UIImage
数组。
images:
UIImages 的 NSArray。time:
图像之间过渡的秒数。isLoop:
动画结束时将重新开始。isLandscape:
如果为真,将优化以显示在横幅模式。- (void) animateWithURLs:(NSArray *)urls transitionDuration:(float)duration loop:(BOOL)shouldLoop isLandscape:(BOOL)inLandscape;
动画一个指向图片的网址的 NSString
数组。
urls:
的 NSString
的 NSArray
,包含网址。time:
图像之间过渡的秒数。isLoop:
动画结束时将重新开始。isLandscape:
如果为真,将优化以显示在横幅模式。