Commit a62aa224 authored by 余玠's avatar 余玠

避免最后一个Flutter页面隐藏时,会被engine持有

parent 1920e77f
...@@ -262,7 +262,13 @@ static NSUInteger kInstanceCounter = 0; ...@@ -262,7 +262,13 @@ static NSUInteger kInstanceCounter = 0;
pageName:_name pageName:_name
params:_params params:_params
uniqueId:self.uniqueIDString]; uniqueId:self.uniqueIDString];
[self bridge_viewDidDisappear:animated]; //如果当前不可见vc和engine所持有的vc一致。在FlutterVC在混合栈中是最后一张页面,如tab中的页面
if (self == FLUTTER_VC)
{
[self surfaceUpdated:NO];
[self detatchFlutterEngine];
}
[super bridge_viewDidDisappear:animated];
} }
- (void)installSplashScreenViewIfNecessary { - (void)installSplashScreenViewIfNecessary {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment