JBKenBurnsView 1.0

JBKenBurnsView 1.0

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2014年12月

Javier Berlana 维护。



iOS Ken Burns 特效

此项目的目标是创建一个可以在给定一组 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 数组。

  1. images: UIImages 的 NSArray。
  2. time: 图像之间过渡的秒数。
  3. isLoop: 动画结束时将重新开始。
  4. isLandscape: 如果为真,将优化以显示在横幅模式。
- (void) animateWithURLs:(NSArray *)urls transitionDuration:(float)duration loop:(BOOL)shouldLoop isLandscape:(BOOL)inLandscape;

动画一个指向图片的网址的 NSString 数组。

  1. urls:NSStringNSArray,包含网址。
  2. time: 图像之间过渡的秒数。
  3. isLoop: 动画结束时将重新开始。
  4. isLandscape: 如果为真,将优化以显示在横幅模式。

待办事项

  • 需要允许设备旋转。
  • 改进图像过渡效果。

SweetBits,欢迎来到糖果厂。