| 测试已测试 | ✗ |
| 语言语言 | Obj-CObjective C |
| 许可证 | MIT |
| 发布上次发布 | 2014 年 12 月 |
由 Bradley David Bergeron 维护。
BDBSpinKitRefreshControl 是 UIRefreshControl 的一个便捷替换,它利用了出色的 SpinKit 进度指示器。
添加 BDBSpinKitRefreshControl 非常简单:就像使用常规的 UIRefreshControl 一样实例化它!
self.refreshControl =
[BDBSpinKitRefreshControl refreshControlWithStyle:RTSpinKitViewStyleBounce color:[UIColor redColor]];
[self.refreshControl addTarget:self
action:@selector(doSomething:)
forControlEvents:UIControlEventValueChanged];
BDBSpinKitRefreshControl 支持在 SpinKit-ObjC 项目中实现的所有样式。有关完整文档,请查看其项目页面。
为了尽可能模仿标准 UIRefreshControl 的行为,我添加了一个 shouldChangeColorInstantly 属性,默认为 NO。在使用标准 UIRefreshControl 时,如果你在它可见时尝试更改 tintColor 属性,则不会发生任何操作。然而,在下一次拉动时,颜色更改将生效。如果你想允许在刷新控件可见时更改颜色,请在实例化时将 shouldChangeColorInstantly 设置为 YES。
BDBSpinKitRefreshControl 是由 Bradley David Bergeron 创建的,并利用了 SpinKit-ObjC,由 Ramon Torres 开发。