我希望在通过NSURL字符串上传期间使用MBProgressHUD显示消息。所以我编码:如何使用两个后续的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;
它没有用,因为此消息与第一个重叠。 关于这方面的任何提示?
可我们还设立“完成”由MBProgressHUD提供的成功消息。 – Aashish 2018-01-31 07:46:47