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 }

 

相关文章:

  • 2022-12-23
  • 2021-05-25
  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2021-09-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-03-05
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
相关资源
相似解决方案