[0.2.1][ios] lock scanner to portrait

This commit is contained in:
Ryan Willoughby
2012-12-12 13:11:02 -08:00
parent 87ffa13f2c
commit a82391ffe0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.phonegap.plugins.barcodescanner"
version="0.2.0">
version="0.2.1">
<name>BarcodeScanner</name>
+2 -2
View File
@@ -826,12 +826,12 @@ parentViewController:(UIViewController*)parentViewController
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationLandscapeRight;
return UIInterfaceOrientationPortrait;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscape;
return UIInterfaceOrientationMaskPortrait;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation