Skip to content

Commit 0dec0e4

Browse files
authored
Fix issue #1533(StateTrailer title could not be changed immediately if setting) (#1536)
1 parent dd358c6 commit 0dec0e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MJRefresh/Custom/Trailer/MJRefreshStateTrailer.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ - (UILabel *)stateLabel {
3838
- (instancetype)setTitle:(NSString *)title forState:(MJRefreshState)state {
3939
if (title == nil) return self;
4040
self.stateTitles[@(state)] = title;
41+
self.stateLabel.text = self.stateTitles[@(self.state)];
4142
return self;
4243
}
4344

0 commit comments

Comments
 (0)