/
TWHUDView.h
31 lines (26 loc) · 922 Bytes
/
TWHUDView.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
//
// TWHUDView.h
// TWToolkit
//
// Created by Sam Soffes on 9/29/09.
// Copyright 2009 Tasteful Works, Inc. All rights reserved.
//
@interface TWHUDView : UIAlertView {
UILabel *_textLabel;
UIActivityIndicatorView *_activityIndicator;
BOOL _loading;
BOOL _successful;
}
@property (nonatomic, retain, readonly) UILabel *textLabel;
@property (nonatomic, retain, readonly) UIActivityIndicatorView *activityIndicator;
@property (nonatomic, assign, getter=isLoading) BOOL loading;
@property (nonatomic, assign, getter=isSuccessful) BOOL successful;
- (id)initWithTitle:(NSString *)aTitle;
- (id)initWithTitle:(NSString *)aTitle loading:(BOOL)isLoading;
- (void)completeWithTitle:(NSString *)aTitle;
- (void)completeAndDismissWithTitle:(NSString *)aTitle;
- (void)failWithTitle:(NSString *)aTitle;
- (void)failAndDismissWithTitle:(NSString *)aTitle;
- (void)dismiss;
- (void)dismissAnimated:(BOOL)animated;
@end