HDL-ON_iOS/Scan.cs
@@ -35,7 +35,6 @@ var bOn = false; mZXingOverlayView.OnCancel += () => { scanner?.Cancel(); }; @@ -50,9 +49,14 @@ var result = await scanner.Scan(); if (result != null) { action?.Invoke(result.Text); } else { action?.Invoke(null); Console.WriteLine("二维码返回值为null"); } } public static byte[] BytesFromText(string text, int width = 300, int height = 300)