|
|
há 11 anos atrás | |
|---|---|---|
| MJRefreshExample | há 11 anos atrás | |
| MJRefreshScreenshots | há 11 anos atrás | |
| .gitignore | há 11 anos atrás | |
| LICENSE | há 11 anos atrás | |
| MJRefresh.podspec | há 11 anos atrás | |
| README.md | há 11 anos atrás |
The easiest way to use pull-to-refresh
pod 'MJRefresh'手动导入:
MJRefreshExample/MJRefreshExample/MJRefresh文件夹中的所有文件拽入项目中导入主头文件:#import "MJRefresh.h"
MJRefresh.bundle
MJRefresh.h
MJRefreshBaseView.h MJRefreshBaseView.m
MJRefreshConst.h MJRefreshConst.m
MJRefreshFooterView.h MJRefreshFooterView.m
MJRefreshHeaderView.h MJRefreshHeaderView.m
UIScrollView+MJExtension.h UIScrollView+MJExtension.m
UIScrollView+MJRefresh.h UIScrollView+MJRefresh.m
UIView+MJExtension.h UIView+MJExtension.m
[self.tableView addHeaderWithTarget:self action:@selector(headerRereshing)];
或者
[self.tableView addHeaderWithCallback:^{ }];
[self.tableView addFooterWithTarget:self action:@selector(footerRereshing)];
或者
[self.tableView addFooterWithCallback:^{ }];
[self.tableView headerBeginRefreshing];
[self.tableView footerBeginRefreshing];
[self.tableView headerEndRefreshing];
[self.tableView footerEndRefreshing];