Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.21 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.21 KB

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

  let scrollView = ...
  scrollView.joRefresh.header = JoRefreshControl()
  scrollView.joRefresh.footer = JoRefreshControl()
  scrollView.joRefresh.tailer = JoRefreshControl()
  scrollView.joRefresh.footerActiveMode = .toBottom

AddTarget

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