oc弹出框显示提示消息

 1 - (void)ShowHUDTitle:(NSString *)title andDelay:(NSTimeInterval)delayTime
 2 {
 3     if (HUD) {
 4         [HUD removeFromSuperview];
 5         HUD = nil;
 6     }
 7     HUD = [[MBProgressHUD alloc] initWithView:self.view];
 8     [self.view addSubview:HUD];
 9     
10     HUD.mode = MBProgressHUDModeText;
11     HUD.labelText = title;
12     HUD.margin = 10.f;
13     [HUD show:YES];
14     
15     [HUD hide:YES afterDelay:delayTime];
16     
17 }

 

posted @ 2015-09-08 16:29  fengsh_h  阅读(1486)  评论(0编辑  收藏  举报