Tests已测试 | ✗ |
Lang语言 | SwiftSwift |
许可证 | MIT |
Released上次发布 | 2016年3月 |
SPM支持 SPM | ✗ |
由 William Archimede、William Archimede 维护。
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
要尝试示例项目,请克隆仓库,并运行项目。
CellAnimator 可以通过 CocoaPods 获取。安装它,只需将以下行添加到您的 Podfile:
pod "CellAnimator"
William Archimede,[email protected]
CellAnimator 可在 MIT 许可证下使用。有关更多信息,请参阅 LICENSE 文件。
如果你使用它并且喜欢它,请告诉我: @warchimede