commit | author | age
|
892936
|
1 |
// |
H |
2 |
// MJRefreshStateHeader.h |
|
3 |
// MJRefreshExample |
|
4 |
// |
|
5 |
// Created by MJ Lee on 15/4/24. |
|
6 |
// Copyright (c) 2015年 小码哥. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import "MJRefreshHeader.h" |
|
10 |
|
|
11 |
@interface MJRefreshStateHeader : MJRefreshHeader |
|
12 |
#pragma mark - 刷新时间相关 |
|
13 |
/** 利用这个block来决定显示的更新时间文字 */ |
|
14 |
@property (copy, nonatomic) NSString *(^lastUpdatedTimeText)(NSDate *lastUpdatedTime); |
|
15 |
/** 显示上一次刷新时间的label */ |
|
16 |
@property (weak, nonatomic, readonly) UILabel *lastUpdatedTimeLabel; |
|
17 |
|
|
18 |
#pragma mark - 状态相关 |
|
19 |
/** 显示刷新状态的label */ |
|
20 |
@property (weak, nonatomic, readonly) UILabel *stateLabel; |
|
21 |
/** 设置state状态下的文字 */ |
|
22 |
- (void)setTitle:(NSString *)title forState:(MJRefreshState)state; |
|
23 |
@end |