Sfoglia il codice sorgente

Merge pull request #541 from xingheng/master

Renamed the class method in UILabel's category.
M了个J 9 anni fa
parent
commit
64675e5d48

+ 1 - 1
MJRefresh/Base/MJRefreshComponent.h

@@ -92,5 +92,5 @@ typedef void (^MJRefreshComponentRefreshingBlock)();
 @end
 
 @interface UILabel(MJRefresh)
-+ (instancetype)label;
++ (instancetype)mj_label;
 @end

+ 1 - 1
MJRefresh/Base/MJRefreshComponent.m

@@ -244,7 +244,7 @@ - (void)executeRefreshingCallback
 @end
 
 @implementation UILabel(MJRefresh)
-+ (instancetype)label
++ (instancetype)mj_label
 {
     UILabel *label = [[self alloc] init];
     label.font = MJRefreshLabelFont;

+ 1 - 1
MJRefresh/Custom/Footer/Auto/MJRefreshAutoStateFooter.m

@@ -30,7 +30,7 @@ - (NSMutableDictionary *)stateTitles
 - (UILabel *)stateLabel
 {
     if (!_stateLabel) {
-        [self addSubview:_stateLabel = [UILabel label]];
+        [self addSubview:_stateLabel = [UILabel mj_label]];
     }
     return _stateLabel;
 }

+ 1 - 1
MJRefresh/Custom/Footer/Back/MJRefreshBackStateFooter.m

@@ -30,7 +30,7 @@ - (NSMutableDictionary *)stateTitles
 - (UILabel *)stateLabel
 {
     if (!_stateLabel) {
-        [self addSubview:_stateLabel = [UILabel label]];
+        [self addSubview:_stateLabel = [UILabel mj_label]];
     }
     return _stateLabel;
 }

+ 2 - 2
MJRefresh/Custom/Header/MJRefreshStateHeader.m

@@ -32,7 +32,7 @@ - (NSMutableDictionary *)stateTitles
 - (UILabel *)stateLabel
 {
     if (!_stateLabel) {
-        [self addSubview:_stateLabel = [UILabel label]];
+        [self addSubview:_stateLabel = [UILabel mj_label]];
     }
     return _stateLabel;
 }
@@ -40,7 +40,7 @@ - (UILabel *)stateLabel
 - (UILabel *)lastUpdatedTimeLabel
 {
     if (!_lastUpdatedTimeLabel) {
-        [self addSubview:_lastUpdatedTimeLabel = [UILabel label]];
+        [self addSubview:_lastUpdatedTimeLabel = [UILabel mj_label]];
     }
     return _lastUpdatedTimeLabel;
 }