-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJALoadingView.h
More file actions
38 lines (28 loc) · 811 Bytes
/
JALoadingView.h
File metadata and controls
38 lines (28 loc) · 811 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
38
//
// JALoadingView.h
//
// Created by Jens Andersson on 2013-05-16.
// Copyright (c) 2013 Jens Andersson. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, JALoadingViewStyle) {
// Gray background with white indicatio, default
JALoadingViewStyleWhiteGrayBackground,
// White indicator
JALoadingViewStyleWhite,
// Gray indicator
JALoadingViewStyleGrey
};
@interface JALoadingView : UIView
@property (nonatomic, retain) UIActivityIndicatorView *indicator;
+ (JALoadingView *)shared;
+ (void)stopAnimating;
+ (void)startAnimating;
- (void)stopAnimating;
- (void)startAnimating;
- (void)startAnimatingInView:(UIView *)parentView;
@end
@interface UIView (JALoadingView)
- (void)startLoadingWithStyle:(JALoadingViewStyle)style;
- (void)stopLoading;
@end