iOS:DoricContext add vc

This commit is contained in:
pengfei.zhou
2020-04-21 18:52:54 +08:00
committed by osborn
parent 64d1153e93
commit 2541a13d74
4 changed files with 11 additions and 7 deletions

View File

@@ -112,5 +112,10 @@ - (void)onShow {
- (void)onHidden {
[self callEntity:DORIC_ENTITY_HIDDEN withArgumentsArray:@[]];
}
- (UIViewController *)vc {
if(!_vc) {
return [UIApplication sharedApplication].keyWindow.rootViewController;
}
return _vc;
}
@end