Нема описа

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我