-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFFPullToRefreshHeader.h
More file actions
37 lines (29 loc) · 935 Bytes
/
FFPullToRefreshHeader.h
File metadata and controls
37 lines (29 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// FFPullToRefreshHeader.h
// prophets-ios
//
// Created by Benjamin Roesch on 10/11/12.
// Copyright (c) 2012 Benjamin Roesch. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
@class FFLabel;
typedef enum{
FFPullToRefreshPulling = 0,
FFPullToRefreshNormal,
FFPullToRefreshLoading,
FFPullToRefreshUpToDate,
} FFPullToRefreshState;
@interface FFPullToRefreshHeader : UIView
@property (nonatomic, strong) FFLabel *textLabel;
//@property (nonatomic, strong) FFLabel *lastRefreshAtLabel;
@property (nonatomic, strong) CALayer *arrow;
@property (nonatomic, strong) UIActivityIndicatorView *spinner;
@property (nonatomic) float height;
@property (nonatomic) FFPullToRefreshState state;
+(FFPullToRefreshHeader *)pullToRefreshHeaderForTableView:(UITableView *)tableView;
-(id)initWithTableView:(UITableView *)tableView;
-(BOOL)isPulling;
-(BOOL)isNormal;
-(BOOL)isLoading;
@end