Browse Source

NCLoginQRCode

marinofaggiana 6 năm trước cách đây
mục cha
commit
869e44eed0
2 tập tin đã thay đổi với 3 bổ sung6 xóa
  1. 3 1
      iOSClient/Login/CCLogin.m
  2. 0 5
      iOSClient/Login/NCLoginQRCode.swift

+ 3 - 1
iOSClient/Login/CCLogin.m

@@ -259,7 +259,9 @@
 
 - (void)dismissQRCode:(NSString *)value metadataType:(NSString *)metadataType
 {
-    
+    if (value != nil) {
+        
+    }
 }
 
 #pragma --------------------------------------------------------------------------------------------

+ 0 - 5
iOSClient/Login/NCLoginQRCode.swift

@@ -63,11 +63,6 @@ class NCLoginQRCode: NSObject, QRCodeReaderViewControllerDelegate {
         readerVC.delegate = self
         
         readerVC.completionBlock = { (result: QRCodeReaderResult?) in
-            if let result = result {
-                print("Completion with result: \(result.value) of type \(result.metadataType)")
-            } else {
-                
-            }
             self.readerVC.dismiss(animated: true, completion: nil)
         }