CellAnimator 0.1.3

CellAnimator 0.1.3

Tests已测试
Lang语言 SwiftSwift
许可证 MIT
Released上次发布2016年3月
SPM支持 SPM

William ArchimedeWilliam Archimede 维护。



CellAnimator

摘要

Swift 语言中用于 UITableViewCell 的酷炫动画

用法

在你的 UITableViewController 中,导入 CellAnimator 并覆盖 tableView:willDisplayCell:forRowAtIndexPath: 方法

import CellAnimator
...
override func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {
    CellAnimator.animateCell(cell, withTransform: CellAnimator.TransformWave, andDuration: 1)
}

配置

以下是您可以在调用 CellAnimator.animateCell:withTransform:andDuration: 时使用的当前可用的转换,以自定义动画:

  • TransformTipIn
  • TransformCurl
  • TransformFan
  • TransformFlip
  • TransformHelix
  • TransformTilt
  • TransformWave

示例

要尝试示例项目,请克隆仓库,并运行项目。

要求

  • ARC
  • iOS 8

安装

CellAnimator 可以通过 CocoaPods 获取。安装它,只需将以下行添加到您的 Podfile:

pod "CellAnimator"

作者

William Archimede,[email protected]

许可证

CellAnimator 可在 MIT 许可证下使用。有关更多信息,请参阅 LICENSE 文件。

如果你使用它并且喜欢它,请告诉我: @warchimede