M16HUDUtil.m
1.3 KB
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
//
// M16HUDUtil.m
// M16
//
#import "M16HUDUtil.h"
@implementation M16HUDUtil
+ (void)successWithText:(NSString *)text inView:(UIView *)view
{
// JGProgressHUD *HUD = [[JGProgressHUD alloc] initWithStyle:JGProgressHUDStyleDark];
// HUD.userInteractionEnabled = NO;
//
// UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"jg_hud_success.png"]];
// HUD.textLabel.text = text;
// JGProgressHUDIndicatorView *ind = [[JGProgressHUDIndicatorView alloc] initWithContentView:imageView];
// HUD.indicatorView = ind;
//
// HUD.square = YES;
//
// [HUD showInView:view];
//
// [HUD dismissAfterDelay:TIP_DELAY_IN_SECOND];
//}
//
//+ (void)errorWithText:(NSString *)text inView:(UIView *)view
//{
// JGProgressHUD *HUD = [[JGProgressHUD alloc] initWithStyle:JGProgressHUDStyleDark];
// HUD.userInteractionEnabled = NO;
//
// UIImageView *errorImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"jg_hud_error.png"]];
// HUD.textLabel.text = text;
// JGProgressHUDIndicatorView *ind = [[JGProgressHUDIndicatorView alloc] initWithContentView:errorImageView];
// HUD.indicatorView = ind;
//
// HUD.square = YES;
//
// [HUD showInView:view];
//
// [HUD dismissAfterDelay:TIP_DELAY_IN_SECOND];
}
@end