简单的刷新控制框架。
RCRefreshControl *refreshControl = [[RCRefreshControl alloc] init];
refreshControl.delegate = self;
[self.tableView addSubview:refreshControl];
- (CGFloat)heightOfRefreshControl:(RCRefreshControl *)refreshControl;
- (void)refreshControlDidBeginPulling:(RCRefreshControl *)refreshControl;
- (void)refreshControlDidEndPulling:(RCRefreshControl *)refreshControl;
- (void)refreshControlDidBeginRefreshing:(RCRefreshControl *)refreshControl;
- (void)refreshControlDidEndRefreshing:(RCRefreshControl *)refreshControl;
- (void)refreshControl:(RCRefreshControl *)refreshControl pullingProgress:(CGFloat)progress;
只需要将 RCRefreshControl.h/m 文件添加到您的项目中,
或使用 CocoaPods。
pod 'RCRefreshControl', '0.0.4'