Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

为了方便使用巨人的轮子,稍微封装了下MJRefresh,两句代码就可以完成刷新,也可以自定义刷新头,并且把页数控制封装了起来,自己就不用记录页数了

Notifications You must be signed in to change notification settings

Benight/MJRefreshEX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

15 Commits

Repository files navigation

MJRefreshEX

为了方便使用巨人的轮子,稍微封装了下MJRefresh,两句代码就可以完成刷新,也可以自定义刷新头,并且把页数控制封装了起来,自己就不用记录页数了

示例

gif

使用方法

1.引用头文件

#import "UIScrollView+MJRefreshEX.h"

2.添加代理

<MJRefreshEXDelegate>

3.添加刷新

[self.tableView addHeaderWithHeaderClass:nil beginRefresh:YES delegate:self animation:YES];
[self.tableView addFooterWithFooterClass:nil automaticallyRefresh:YES delegate:self];

4.添加监听

- (void)onRefreshing:(id)control {}
- (void)onLoadingMoreData:(id)control pageNum:(NSNumber *)pageNum {}

About

为了方便使用巨人的轮子,稍微封装了下MJRefresh,两句代码就可以完成刷新,也可以自定义刷新头,并且把页数控制封装了起来,自己就不用记录页数了

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /