Skip to content

Commit

Permalink
fix:LBXScanViewController内存泄漏问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dvlprliu committed Aug 24, 2018
1 parent 6c87df4 commit c20d4dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/LBXScanViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import UIKit
import Foundation
import AVFoundation

public protocol LBXScanViewControllerDelegate {
public protocol LBXScanViewControllerDelegate: class {
func scanFinished(scanResult: LBXScanResult, error: String?)
}


open class LBXScanViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate {

//返回扫码结果,也可以通过继承本控制器,改写该handleCodeResult方法即可
open var scanResultDelegate: LBXScanViewControllerDelegate?
open weak var scanResultDelegate: LBXScanViewControllerDelegate?

open var scanObj: LBXScanWrapper?

Expand Down Expand Up @@ -209,7 +209,7 @@ open class LBXScanViewController: UIViewController, UIImagePickerControllerDeleg
// strongSelf.startScan()
// }
}

alertController.addAction(alertAction)
present(alertController, animated: true, completion: nil)
}
Expand Down

0 comments on commit c20d4dd

Please sign in to comment.