扫描二维码模态内存泄漏
wmh8638 opened this issue · comments
wmh8638 commented
[self.obtain setBlockWithQRCodeObtainScanResult:^(SGQRCodeObtain *obtain, NSString result) {
@strongify(self);
ScanWebViewController scanWebView = [[ScanWebViewController alloc]init];
UINavigationViewController *nav = [[UINavigationViewController alloc] initWithRootViewController:scanWebView];
nav.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:nav animated:YES completion:nil];
}];
Attempt to present
ScanWebViewController dismiss不释放