Skip to content

Commit c67db52

Browse files
committed
Merge pull request CoderMJLee#405 from zdrzdr/master
enum
2 parents fcb63ce + 51e4522 commit c67db52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MJRefresh/Base/MJRefreshComponent.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#import "UIScrollView+MJRefresh.h"
1515

1616
/** 刷新控件的状态 */
17-
typedef enum {
17+
typedef NS_ENUM(NSInteger, MJRefreshState) {
1818
/** 普通闲置状态 */
1919
MJRefreshStateIdle = 1,
2020
/** 松开就可以进行刷新的状态 */
@@ -25,7 +25,7 @@ typedef enum {
2525
MJRefreshStateWillRefresh,
2626
/** 所有数据加载完毕,没有更多的数据了 */
2727
MJRefreshStateNoMoreData
28-
} MJRefreshState;
28+
};
2929

3030
/** 进入刷新状态的回调 */
3131
typedef void (^MJRefreshComponentRefreshingBlock)();

0 commit comments

Comments
 (0)