Sem descrição

MJ Lee eeae382672 Remove bundle const há 11 anos atrás
MJRefreshExample eeae382672 Remove bundle const há 11 anos atrás
MJRefreshScreenshots 37af3abdf0 增加截图 há 11 anos atrás
.gitignore 6d485b53f0 add gitignore há 11 anos atrás
LICENSE 8a8e8b917a Add LICENSE há 11 anos atrás
MJRefresh.podspec bc34578b90 add MJRefresh.bundle há 11 anos atrás
README.md e7d9dec25d Update README.md há 11 anos atrás

README.md

MJRefresh

The easiest way to use pull-to-refresh

(52326ce26803fabc46000000_18)

MJ友情提示

1.添加头部控件的方法

 [self.tableView addHeaderWithTarget:self action:@selector(headerRereshing)];
 或者
 [self.tableView addHeaderWithCallback:^{ }];

2.添加尾部控件的方法

 [self.tableView addFooterWithTarget:self action:@selector(footerRereshing)];
 或者
 [self.tableView addFooterWithCallback:^{ }];

3.可以在MJRefreshConst.h和MJRefreshConst.m文件中自定义显示的文字内容和文字颜色

4.本框架兼容iOS6\iOS7,iPhone\iPad横竖屏

5.自动进入刷新状态

[self.tableView headerBeginRefreshing];
[self.tableView footerBeginRefreshing];

8.结束刷新

[self.tableView headerEndRefreshing];
[self.tableView footerEndRefreshing];