当我使用[SVProgressHUD show]
时,延迟 2 秒,然后使用[SVProgressHUD dismiss]
,HUD 关闭。
但是当我使用时[SVProgressHUD showErrorWithStatus:@"test"]
,hud 不能显示。
谁能留下我为什么?
- (void)viewDidLoad {
[super viewDidLoad];
[SVProgressHUD show];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[SVProgressHUD dismiss];
[SVProgressHUD showErrorWithStatus:@"test"];
});
}