commit | author | age
|
6e1425
|
1 |
// 代码地址: https://github.com/CoderMJLee/MJRefresh |
H |
2 |
// 代码地址: http://code4app.com/ios/%E5%BF%AB%E9%80%9F%E9%9B%86%E6%88%90%E4%B8%8B%E6%8B%89%E4%B8%8A%E6%8B%89%E5%88%B7%E6%96%B0/52326ce26803fabc46000000 |
|
3 |
// MJRefreshHeader.h |
|
4 |
// MJRefreshExample |
|
5 |
// |
|
6 |
// Created by MJ Lee on 15/3/4. |
|
7 |
// Copyright (c) 2015年 小码哥. All rights reserved. |
|
8 |
// 下拉刷新控件:负责监控用户下拉的状态 |
|
9 |
|
|
10 |
#import "MJRefreshComponent.h" |
|
11 |
|
|
12 |
@interface MJRefreshHeader : MJRefreshComponent |
|
13 |
/** 创建header */ |
|
14 |
+ (instancetype)headerWithRefreshingBlock:(MJRefreshComponentRefreshingBlock)refreshingBlock; |
|
15 |
/** 创建header */ |
|
16 |
+ (instancetype)headerWithRefreshingTarget:(id)target refreshingAction:(SEL)action; |
|
17 |
|
|
18 |
/** 这个key用来存储上一次下拉刷新成功的时间 */ |
|
19 |
@property (copy, nonatomic) NSString *lastUpdatedTimeKey; |
|
20 |
/** 上一次下拉刷新成功的时间 */ |
|
21 |
@property (strong, nonatomic, readonly) NSDate *lastUpdatedTime; |
|
22 |
|
|
23 |
/** 忽略多少scrollView的contentInset的top */ |
|
24 |
@property (assign, nonatomic) CGFloat ignoredScrollViewContentInsetTop; |
|
25 |
@end |