内容简介:CBPullToReflesh:下拉刷新也可以很美(Swift)
CBPullToReflesh
Dribbble网址: Daily-UI-094-News ,点击 此处 查看详细教程
Requirements
- Swift 3.0
- iOS 8.0
Installation
CBPullToReflesh is available through CocoaPods . To install it, simply add the following line to your Podfile:
pod "CBPullToReflesh"
Don't forget to specify you Swift version.
post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['SWIFT_VERSION'] = '3.0' end end end
Usage
Wrap your scrollView
let tableViewWrapper = PullToRefleshView(scrollView: yourTableView) bodyView.addSubview(tableViewWrapper)
The color of the wrapper will be same as your scrollView's background color.
Handler
tableViewWrapper.didPullToRefresh = { //... }
End the reflesh simplily
tableViewWrapper.endReflesh()
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- Swift iOS : 上拉刷新或者下拉刷新
- Swift iOS : 上拉刷新或者下拉刷新
- 上拉加载 下拉刷新
- 炫酷的列表下拉刷新效果
- Android中ListView下拉刷新的实现
- iOS 下拉刷新组件原理及简单实现
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Essential PHP Security
Chris Shiflett / O'Reilly Media / 2005-10-13 / USD 29.95
Being highly flexible in building dynamic, database-driven web applications makes the PHP programming language one of the most popular web development tools in use today. It also works beautifully wit......一起来看看 《Essential PHP Security》 这本书的介绍吧!