بدون توضیح

MJLee 2650843c05 Modify podspec 11 سال پیش
MJRefreshExample 9ea9aa61d2 Nothing important 11 سال پیش
MJRefreshScreenshots 37af3abdf0 增加截图 11 سال پیش
.gitignore 9ea9aa61d2 Nothing important 11 سال پیش
LICENSE 2650843c05 Modify podspec 11 سال پیش
MJRefresh.podspec 2650843c05 Modify podspec 11 سال پیش
README.md bab2d139f2 Update MD 11 سال پیش

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横竖屏

期待

  • 如果在使用过程中遇到BUG,希望你能Issues我,谢谢
  • 如果在使用过程中发现功能不够用,希望你能Issues我,我非常想为这个框架增加更多好用的功能,谢谢
  • 如果你想为MJRefresh输出代码,请拼命Pull Requests我