Selaa lähdekoodia

Merge pull request #405 from zdrzdr/master

enum
M了个J 10 vuotta sitten
vanhempi
commit
c67db52870
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      MJRefresh/Base/MJRefreshComponent.h

+ 2 - 2
MJRefresh/Base/MJRefreshComponent.h

@@ -14,7 +14,7 @@
 #import "UIScrollView+MJRefresh.h"
 
 /** 刷新控件的状态 */
-typedef enum {
+typedef NS_ENUM(NSInteger, MJRefreshState) {
     /** 普通闲置状态 */
     MJRefreshStateIdle = 1,
     /** 松开就可以进行刷新的状态 */
@@ -25,7 +25,7 @@ typedef enum {
     MJRefreshStateWillRefresh,
     /** 所有数据加载完毕,没有更多的数据了 */
     MJRefreshStateNoMoreData
-} MJRefreshState;
+};
 
 /** 进入刷新状态的回调 */
 typedef void (^MJRefreshComponentRefreshingBlock)();