Open weidongliu opened 1 year ago
是不是你在contentView
的Block
中引用了QMUIModalPresentationViewController
,你可以将QMUIModalPresentationViewController
弱引用,例如:
@weakify(modalViewController)
contentView.completeHandler = ^{
@strongify(modalViewController)
[modalViewController hideWithAnimated:YES completion:^(BOOL finished) {
if (finished) {
completeHandler();
}
}];
};
@RomanticEncounter 没有噢,我都没主动调用到QMUIModalPresentationViewController,使用方法就是这样 let controller = QMUIAlertController(title: nil, message: message, preferredStyle: .alert) controller.showWith(animated: true)
Bug 表现 QMUIModalPresentationWindow没释放
截图
如何重现 使用QMUIAlertController弹窗后关闭
预期的表现 QMUIModalPresentationWindow释放掉
其他信息