This commit is contained in:
wushenghua
2017-04-10 18:05:25 +08:00
parent 9159b73d76
commit 123a0275ba
3 changed files with 11 additions and 2 deletions
+9
View File
@@ -113,6 +113,15 @@
- (void)rnView:(ASHRNView *)rnView didFailed:(NSError *)error
{
[MBProgressHUD hideHUDForView:self.view animated:YES];
MBProgressHUD* progressHUD = [[MBProgressHUD alloc] initWithFrame:self.view.bounds];
progressHUD.removeFromSuperViewOnHide = YES;
progressHUD.center = self.view.center;
progressHUD.label.text = @"加载失败";
[self.view addSubview:progressHUD];
[progressHUD showAnimated:YES];
[progressHUD hideAnimated:YES afterDelay:1.0];
}
- (void)rnViewDidRenderFinish:(ASHRNView *)rnView
{