title: Xamarin.iOS ZXing.Net.Mobile barcode scanner
body: <p>I'm trying to add barcode scanner feature to my xamarin.ios app. I'm developing from visual studio and I've added the Zxing.Net.Mobile component from xamarin components store.</p>
  
  <p>I've implemented it as shown in the samples:</p>
  
  <pre><code>ScanButton.TouchUpInside += async (sender, e) =&gt; {
              //var options = new ZXing.Mobile.MobileBarcodeScanningOptions();
              //options.AutoRotate = false;
              //options.PossibleFormats = new List&lt;ZXing.BarcodeFormat&gt;() {
              //    ZXing.BarcodeFormat.EAN_8, ZXing.BarcodeFormat.EAN_13
              //};
  
              var scanner = new ZXing.Mobile.MobileBarcodeScanner(this);
              //scanner.TopText = "Hold camera up to barcode to scan";
              //scanner.BottomText = "Barcode will automatically scan";
              //scanner.UseCustomOverlay = false;
              scanner.FlashButtonText = "Flash";
              scanner.CancelButtonText = "Cancel";
              scanner.Torch(true);
              scanner.AutoFocus();
  
              var result = await scanner.Scan(true);
              HandleScanResult(result);
          };
  
  void HandleScanResult(ZXing.Result result)
      {
          if (result != null &amp;&amp; !string.IsNullOrEmpty(result.Text))
              TextField.Text = result.Text;
      }
  </code></pre>
  
  <p>The problem is that when I tap the scan button, the capture view is shown  correctly but if I try to capture a barcode nothing happens and it seems the scanner doesn't recognize any barcode.</p>
  
  <p>Someone has experienced this issue? How can I made it work?</p>
  
  <p>Thanks in advance for your help!</p>