Fix QR code scanner cannot be cancelled

This commit is contained in:
Bob Sun 2017-10-09 20:33:18 -07:00
parent eb86b4cb05
commit 79744fc713
2 changed files with 4 additions and 2 deletions

View file

@ -14,6 +14,9 @@ class OTPScannerController: QRScannerController {
var scannedOTP: String?
@IBAction func pressCancel(_ sender: UIBarButtonItem) {
navigationController?.popViewController(animated: true)
}
// MARK: - AVCaptureMetadataOutputObjectsDelegate Methods
func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputMetadataObjects metadataObjects: [Any]!, from connection: AVCaptureConnection!) {