-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathODRefreshControl.h
executable file
·42 lines (34 loc) · 1.1 KB
/
ODRefreshControl.h
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
38
39
40
41
42
//
// ODRefreshControl.h
// ODRefreshControl
//
// Created by Fabio Ritrovato on 6/13/12.
// Copyright (c) 2012 orange in a day. All rights reserved.
//
// https://github.com/Sephiroth87/ODRefreshControl
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
@interface ODRefreshControl : UIControl {
CAShapeLayer *_shapeLayer;
CAShapeLayer *_arrowLayer;
CAShapeLayer *_highlightLayer;
UIView *_activity;
BOOL _refreshing;
BOOL _canRefresh;
BOOL _ignoreInset;
BOOL _ignoreOffset;
BOOL _didSetInset;
BOOL _hasSectionHeaders;
}
@property (nonatomic, readonly) BOOL isAnimating;
@property (nonatomic, strong) UIColor *tintColor;
@property (nonatomic, assign) UIActivityIndicatorViewStyle activityIndicatorViewStyle;
- (id)initInScrollView:(UIScrollView *)scrollView;
// use custom activity indicator
- (id)initInScrollView:(UIScrollView *)scrollView activityIndicatorView:(UIView *)activity;
// Tells the control that a refresh operation was started programmatically
- (void)beginRefreshing;
// Tells the control the refresh operation has ended
- (void)endRefreshing;
@end