BFRefresh
works on "Xcode 9.3.1 , Swift 4 and ios 8+ to build.
You will need the latest developer tools in order to build BFRefresh
. Old Xcode versions might work, but compatibility will not be explicitly maintained.
CocoaPods is the recommended way to add BFRefresh to your project.
Add a pod entry for BFRefresh to your Podfile.
pod 'BFRefresh'
Second, install BFRefresh into your project:
pod install
- Download the latest code version .
- Open your project in Xcode,drag the
JQProgressHUD
folder into your project. Make sure to select Copy items when asked if you extracted the code archive outside of your project.
tableView.set(loadType: .normal)
tableView.refreshBlock = { [weak self] in
print(self ?? "")
}
For more examples, including how to use BFRefresh , take a look at the bundled demo project. API documentation is provided in the header file (UIScrollView-BFRefresh.swift).
BFRefresh is released under the MIT. See LICENSE for details.