Skip to content

Commit fb2848d

Browse files
authored
修复了,在设置header展示刷新文字的block后,第一次展示不会刷新文字的问题 (#1404)
1 parent f918e33 commit fb2848d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

MJRefresh/Custom/Header/MJRefreshStateHeader.m

+6
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ - (UILabel *)lastUpdatedTimeLabel
4949
return _lastUpdatedTimeLabel;
5050
}
5151

52+
- (void)setLastUpdatedTimeText:(NSString * _Nonnull (^)(NSDate * _Nullable))lastUpdatedTimeText{
53+
_lastUpdatedTimeText = lastUpdatedTimeText;
54+
// 重新设置key(重新显示时间)
55+
self.lastUpdatedTimeKey = self.lastUpdatedTimeKey;
56+
}
57+
5258
#pragma mark - 公共方法
5359
- (instancetype)setTitle:(NSString *)title forState:(MJRefreshState)state
5460
{

0 commit comments

Comments
 (0)