内容简介: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()
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
TCP/IP网络管理
亨特 / 电子工业 / 2006年3月1日 / 79.00元
本书是一本架设与维护TCP/IP网络的完整指南,无论你是在职的系统管理员,还是需要访问Internet的家用系统用户,都可从本书获得帮助。本书还讨论了高级路由协议(RIPv2、OSPF、BGP),以及实现这些协议的gated软件。对于各种重要的网络服务,如DNS,Apache,sendmail,Samba,PPP和DHCP,本书都提供了配置范例,以及相关的软件包与工具的语法参考。一起来看看 《TCP/IP网络管理》 这本书的介绍吧!