测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可协议 | MIT |
发布最后发布 | 2016年10月 |
SPM支持 SPM | ✗ |
Maksim Usenko、Artem Sydorenko、Serhii Butenko 维护。
自定义的动画下拉刷新,可以轻松添加到 UIScrollView
首先,导入 PullToMakeFlight 框架
import PullToMakeFlight
创建 refresher
let refresher = PullToMakeFlight()
将 refresher 添加到您的 UIScrollView 子类中,并提供一个动作块
tableView.addPullToRefresh(refresher) {
// action to be performed (pull data from some source)
}
当动作完成后,您想隐藏 refresher
tableView.endRefreshing()
您还可以以编程方式开始刷新
tableView.startRefreshing()
组件是针对 可自定义的下拉刷新 实现的
如果您愿意,可以将使用我们的组件的项目链接发送给我们。只需发送电子邮件到 [email protected],并告知我们您是否有关于动画的问题或建议。
提示:我们将发布更多包含代码的精彩内容,以及如何将 iOS(Android)的 UI 做得更好的教程。敬请期待!
The MIT License (MIT)
Copyright © 2015 Yalantis
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.