CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

CBPullToReflesh 1.0.0

CBPullToReflesh 1.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by cbangchen.



  • By
  • cbangchen

Dribbble网址:Daily-UI-094-News,点击 此处 查看详细教程

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 = {
   //you can do anythings you want after beginning to reflesh
}

You can end the reflesh simplily

 tableViewWrapper.endReflesh()