Browse Source

循环引用

harry 3 years ago
parent
commit
a279a659a7
1 changed files with 8 additions and 8 deletions
  1. 8 8
      Introduce/Record/INIntrocudeController.swift

+ 8 - 8
Introduce/Record/INIntrocudeController.swift

@@ -20,15 +20,15 @@ class INIntrocudeController: BFBaseViewController {
         let vc = BFRecordScreenController()
         vc.asset = asset
         vc.nextActionHandle = {
-            DispatchQueue.main.async { [weak self] in
-                let controller = INVideoExportController()
-                controller.export.voiceList = vc.recordList
-                controller.export.asset = vc.avasset
-                self?.navigationController?.pushViewController(controller, animated: true)
-            }
+//            DispatchQueue.main.async { [weak self, weak vc] in
+//                let controller = INVideoExportController()
+//                controller.export.voiceList = vc?.recordList
+//                controller.export.asset = vc?.avasset
+//                self?.navigationController?.pushViewController(controller, animated: true)
+//            }
         }
-        vc.closeActionHandle = {
-            self.backBtnClick()
+        vc.closeActionHandle = {[weak self] in
+            self?.backBtnClick()
         }
         vc.view.frame = self.view.frame
         addChild(vc)