-
Notifications
You must be signed in to change notification settings - Fork 0
/
GVLoadingView.h
executable file
·57 lines (44 loc) · 1.5 KB
/
GVLoadingView.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// GVLoadingView.h
// Loader
//
// Created by Gabriel Vincent on 14/07/12.
// Copyright (c) 2012 _A_Z. All rights reserved.
//
#import <Foundation/Foundation.h>
@class GVLoadingView;
typedef enum {
GVLoadingViewShowAnimationAppear,
GVLoadingViewShowAnimationFade,
GVLoadingViewShowAnimationShutter,
GVLoadingViewShowAnimationDrop,
GVLoadingViewShowAnimationNone
} GVLoadingViewShowAnimation;
typedef enum {
GVLoadingViewDismissAnimationDisappear,
GVLoadingViewDismissAnimationFade,
GVLoadingViewDismissAnimationShutter,
GVLoadingViewDismissAnimationNone
} GVLoadingViewDismissAnimation;
@protocol GVLoadingViewDelegate <NSObject>
@end
@interface GVLoadingView : UIView <GVLoadingViewDelegate> {
CGRect finalFrame;
__unsafe_unretained UIViewController <GVLoadingViewDelegate> *delegate;
UIButton *reloadButton;
BOOL isFirstCall;
}
@property (nonatomic, unsafe_unretained) UIViewController <GVLoadingViewDelegate> *delegate;
@property (nonatomic) SEL reloadMethod;
// Message label
@property (nonatomic, strong) UILabel *messageLabel;
// Activity indicator view
@property (nonatomic, strong) UIActivityIndicatorView *spinner;
// View
@property (nonatomic) CGFloat animationTime;
@property (nonatomic, strong) UIImage *reloadImage;
- (void) showWithAnimation:(GVLoadingViewShowAnimation)animation;
- (void) dismissWithAnimation:(GVLoadingViewDismissAnimation)animation;
- (void) enterReloadModeWithMessage:(NSString *) reloadMessage;
- (void) exitReloadModeWithMessage:(NSString *) reloadMessage;
@end