1234567891011121314151617181920212223242526272829303132333435363738394041 |
- //
- // UICollectionView+MJRefreshAutoManger.h
- // YouHuiProject
- //
- // Created by 小花 on 2018/5/17.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- /*
- 使用方法:
-
- 1. 在tableView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock之后初始化刷新状态:
- _tableView.mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
-
- }];
-
- _tableView.footRefreshState = MJFooterRefreshStateNormal;
-
- 2、用_tableView.footRefreshState = MJFooterRefreshStateLoadMore;替代你代码的[_tableView.mj_footer endRefreshing];
-
- 用_tableView.footRefreshState = MJFooterRefreshStateNoMore;替代你代码的[_tableView.mj_footer endRefreshingWithNoMoreData];
-
- **/
- #import <UIKit/UIKit.h>
- #import <MJRefresh.h>
- typedef NS_ENUM(NSInteger, MJFooterRefreshState) {
-
- MJFooterRefreshStateNormal,
-
- MJFooterRefreshStateLoadMore,
-
- MJFooterRefreshStateNoMore
-
- };
- @interface UICollectionView (MJRefreshAutoManger)
- @property (nonatomic, assign) MJFooterRefreshState footRefreshState;
- @end
|