我想在通过 NSURL 字符串上传期间使用 MBProgressHUD 显示一条消息。所以我编码:
MBProgressHUD *hud1 = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud1.labelText = @"sending info ...";
hud1.minShowTime =10.0;
NSURL *url =[NSURL URLWithString:self.urlToUpload];
10 秒时间是为了等待一段时间,我希望用户等待。它有效,但是当第一个消失时我会显示另一条消息。使用另一个:
MBProgressHUD *hud2 = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud2.labelText = @"SENT!";
hud2.minShowTime =2.0;
它没有用,因为此消息与第一个消息重叠。有什么建议吗?