项目作者: djangolee

项目描述 :
pull to refresh
高级语言: Swift
项目地址: git://github.com/djangolee/JoRefresh.git
创建时间: 2016-07-14T16:01:26Z
项目社区:https://github.com/djangolee/JoRefresh

开源协议:MIT License

下载


JoRefresh

License MIT
Build Status
CocoaPods
Support
Language

Installation

CocoaPods

  1. Add pod 'JoRefresh' to your Podfile.
  2. Run pod install or pod update.
  3. Import JoRefresh

Usage

Init

  1. let scrollView = ...
  2. scrollView.joRefresh.header = JoRefreshControl()
  3. scrollView.joRefresh.footer = JoRefreshControl()
  4. scrollView.joRefresh.tailer = JoRefreshControl()
  5. scrollView.joRefresh.footerActiveMode = .toBottom

AddTarget

  1. scrollView.joRefresh.header?.addTarget(self, action: #selector(loadData), for: .valueChanged)
  2. scrollView.joRefresh.footer?.addTarget(self, action: #selector(moreData), for: .valueChanged)