To run the example project, clone the repo, and run pod install
from the Example directory first.
FPRefresh is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'FPRefresh'
配置刷新&结束刷新
self.tableView.headerCanRefresh = YES;
self.tableView.foorterCanRefresh = YES;
self.tableView.pageSize = 2;
self.tableView.pageNumber = 1;
self.tableView.refreshBlock = ^(RefreshType type) {
//下啦刷新&上啦加载回调
[weakSelf loadNetData];
};
//强制下拉刷新
[self.tableView begin_Refreshing];
//网络请求正常结束刷新
[self.tableView end_Refresh];
//网络请求失败结束刷新
[self.tableView endError_Refresh];
FPJack, [email protected]
FPRefresh is available under the MIT license. See the LICENSE file for more info.