feat:fix lifecycle call not exactly right

This commit is contained in:
pengfei.zhou
2020-05-06 16:17:41 +08:00
committed by osborn
parent 88a8db247c
commit 8f693b451d
3 changed files with 14 additions and 5 deletions

View File

@@ -47,7 +47,9 @@ - (void)config:(NSString *)script alias:(NSString *)alias extra:(NSString *)extr
[self.view addSubview:it];
}]];
}];
[self.doricContext onShow];
if (self.parentViewController != nil) {
[self.doricContext onShow];
}
}
- (void)viewWillLayoutSubviews {