FMRefreshControl
how to add
- Installation with CocoaPods:pod 'FMRefreshControl'
- Manual import:
- Drag All files in the Classes folder to project
- Import the main file:#import "FMRefreshControl.h"
how to use
//初始化一个control
UIRefreshControl *control = [[FMRefreshControl alloc] initWithTargrt:self refreshAction:@selector(dorefresh)];
//把control 添加到 tableView
[self.tableView addSubview:control];