title: Zxing Barcode Scanner PhoneGap Plugin iOS landscape mode
body: <p>I have implement Zxing Barcode Scanner in ipad using PhoneGap 1.7.0 and Zxing Barcode Scanner from <a href="https://github.com/phonegap/phonegap-plugins/tree/master/iOS/BarcodeScanner" rel="nofollow">https://github.com/phonegap/phonegap-plugins/tree/master/iOS/BarcodeScanner</a>. But the orientation is portrait only. I want to change it to landscape by modify this code</p>
  
  <pre><code>if ([previewLayer isOrientationSupported]) {
      [previewLayer setOrientation:AVCaptureVideoOrientationPortrait];
  }
  </code></pre>
  
  <p>and this code too</p>
  
  <pre><code>if (interfaceOrientation == UIInterfaceOrientationPortrait) return YES;
  </code></pre>
  
  <p>in CDVBarcodeScanner.mm and change the value of Portrait to LandscapeRight.
  My problem is video not full screen, there has black portion in right.
  Also when scan barcode only success when portrait not landscape even in landscape mode.</p>
  
  <p>Is there any solution to make landscape mode perfect?</p>