内容简介: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()
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Inside the C++ Object Model
Stanley B. Lippman / Addison-Wesley Professional / 1996-5-13 / USD 64.99
Inside the C++ Object Model focuses on the underlying mechanisms that support object-oriented programming within C++: constructor semantics, temporary generation, support for encapsulation, inheritanc......一起来看看 《Inside the C++ Object Model》 这本书的介绍吧!
JS 压缩/解压工具
在线压缩/解压 JS 代码
HEX HSV 转换工具
HEX HSV 互换工具