Sen descrición

MJLee 9ea9aa61d2 Nothing important %!s(int64=11) %!d(string=hai) anos
MJRefreshExample 9ea9aa61d2 Nothing important %!s(int64=11) %!d(string=hai) anos
MJRefreshScreenshots 37af3abdf0 增加截图 %!s(int64=11) %!d(string=hai) anos
.gitignore 9ea9aa61d2 Nothing important %!s(int64=11) %!d(string=hai) anos
LICENSE 8a8e8b917a Add LICENSE %!s(int64=11) %!d(string=hai) anos
MJRefresh.podspec bc34578b90 add MJRefresh.bundle %!s(int64=11) %!d(string=hai) anos
README.md 243301aee5 Nothing important %!s(int64=11) %!d(string=hai) anos

README.md

MJRefresh


The easiest way to use pull-to-refresh

(52326ce26803fabc46000000_18)

添加头部控件


[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];

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

本框架兼容的系统>=iOS6.0,iPhone\iPad横竖屏