From 084594d86c7cafb98f0985101629fa910141fa6a Mon Sep 17 00:00:00 2001 From: Ryan Willoughby Date: Wed, 12 Dec 2012 13:11:02 -0800 Subject: [PATCH] [0.2.1][ios] lock scanner to portrait --- plugin.xml | 2 +- src/ios/CDVBarcodeScanner.mm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.xml b/plugin.xml index 6f361ca..4f5ae46 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="0.2.1"> BarcodeScanner diff --git a/src/ios/CDVBarcodeScanner.mm b/src/ios/CDVBarcodeScanner.mm index 66ee7f4..906a3a9 100644 --- a/src/ios/CDVBarcodeScanner.mm +++ b/src/ios/CDVBarcodeScanner.mm @@ -826,12 +826,12 @@ parentViewController:(UIViewController*)parentViewController - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { - return UIInterfaceOrientationLandscapeRight; + return UIInterfaceOrientationPortrait; } - (NSUInteger)supportedInterfaceOrientations { - return UIInterfaceOrientationMaskLandscape; + return UIInterfaceOrientationMaskPortrait; } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation