Latest 2.6.1
Homepage https://github.com/FitClan/FitRefresh
License MIT
Platforms ios 8.0, requires ARC
Authors

FitRefresh

License MIT 
CocoaPods 
CocoaPods 

描述

Swift 4+ 的下拉刷新 (The refresh use Swift4)

集成

最简单也是推荐的方式
The sample way.

pod 'FitRrefesh'

另外一种
else

You can also drop the Sources to your project.

使用 Use

Version 1.3 Later

// header
// first way
self.tableView.fr.headerView = FRNormalHeader(target: self, action: #selector(NormalTableViewController.upPullLoadData))
self.tableView.fr.headerView?.beginRefreshing()
// second way
self.tableView.fr.headerView = FRNormalHeader(ComponentRefreshingClosure: { 
            self.upPullLoadData()
        })
self.tableView.fr.headerView?.beginRefreshing()

// footer
// first way
self.tableView.fr.footerView = FRAutoNormalFooter(target: self, action: #selector(NormalTableViewController.downPullLoadData))
// second way
self.tableView.fr.footerView = FRAutoNormalFooter(ComponentRefreshingClosure: {
            self.downPullLoadData()
        })

Version 1.2

// header
// first way
self.tableView.fr_headerView = FRNormalHeader(target: self, action: #selector(NormalTableViewController.upPullLoadData))
self.tableView.fr_headerView?.beginRefreshing()
// second way
self.tableView.fr_headerView = FRNormalHeader(ComponentRefreshingClosure: { 
            self.upPullLoadData()
        })
self.tableView.fr_headerView?.beginRefreshing()

// footer
// first way
self.tableView.fr_footerView = FRAutoNormalFooter(target: self, action: #selector(NormalTableViewController.downPullLoadData))
// second way
self.tableView.fr_footerView = FRAutoNormalFooter(ComponentRefreshingClosure: {
            self.downPullLoadData()
        })

Latest podspec

{
    "name": "FitRefresh",
    "version": "2.6.1",
    "summary": "FitRefresh makes it easy to refresh in Swift4+",
    "platforms": {
        "ios": "8.0"
    },
    "homepage": "https://github.com/FitClan/FitRefresh",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "Cyrill": "[email protected]"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/FitClan/FitRefresh.git",
        "tag": "2.6.1"
    },
    "source_files": [
        "Sources/*.swift",
        "Sources/FitRefresh.h",
        "Sources/FitRefresh.swift"
    ],
    "resources": "Sources/*.bundle",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.0"
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This