M16HUDUtil.m 1.3 KB
//
//  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