- (void)hudWithTitle:(NSString *)title
{
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.navigationController.view animated:YES];
hud.mode = MBProgressHUDModeText;
hud.label.text = title;
[hud hideAnimated:YES afterDelay:1.f];
}
- (void)hudWithTitle:(NSString *)title
{
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.navigationController.view animated:YES];
hud.mode = MBProgressHUDModeText;
hud.label.text = title;
[hud hideAnimated:YES afterDelay:1.f];
}
转载于:https://www.cnblogs.com/Neil-0315/p/5251102.html