// // MBPUUHUDHelp.m // HuaTuoReproduction // // Created by lhn on 2018/1/24. // Copyright © 2018年 UU. All rights reserved. // #import "MBPUUHUDHelp.h" @implementation MBPUUHUDHelp #pragma mark -----loading框方法集 +(MBProgressHUD *)showCustomHudtitle:(NSString *)title { MBProgressHUD *hud=[[MBProgressHUD alloc] initWithView:[UIApplication sharedApplication].windows.lastObject] ; [[UIApplication sharedApplication].windows.lastObject addSubview:hud]; //setActivityIndicatorColor hud.bezelView.style = MBProgressHUDBackgroundStyleSolidColor; hud.bezelView.backgroundColor = [UIColor clearColor]; hud.alpha = 0; hud.detailsLabel.text = title; [hud showAnimated:YES]; return hud; } +(void)showAutoDissmissAlertView:(NSString *)title msg:(NSString *)msg { MBProgressHUD *hud=[[MBProgressHUD alloc] initWithView:[UIApplication sharedApplication].windows.lastObject] ; hud.mode=MBProgressHUDModeIndeterminate; // hud.dimBackground = NO; [[UIApplication sharedApplication].windows.lastObject addSubview:hud]; hud.detailsLabel.text = msg; [hud showAnimated:YES]; [hud hideAnimated:YES afterDelay:3]; } +(void)HidHud { [MBProgressHUD hideHUDForView:[UIApplication sharedApplication].windows.lastObject animated:YES]; } @end