Commit 776ac7f5 authored by 侯超鑫's avatar 侯超鑫

【735直播】解决关闭直播间依旧有声音的bug

parent 04a39191
......@@ -38,9 +38,13 @@
}
- (void)showController:(UIViewController *)controller {
//如果之前已有controller
if (_controller) {
[(id<GMFloatWindowProtocol>)_controller destroyOtherController];
_controller = nil;
}
if (self.superview == nil) {
[[UIApplication sharedApplication].keyWindow addSubview:self];
// [[AppDelegate shareInstance].window addSubview:self];
}
_controller = controller;
[self addSubview:controller.view];
......
......@@ -20,4 +20,8 @@
GMFloatWindow 由小窗口模式到全屏模式,会调用此方法
*/
- (void)showOtherViews;
/// 销毁当前的VC
- (void)destroyOtherController;
@end
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