mirror of
https://github.com/wahyd4/BarcodeScanner.git
synced 2026-08-10 05:26:06 +10:00
[0.2.1][ios] lock scanner to portrait
This commit is contained in:
+1
-1
@@ -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>
|
||||
|
||||
|
||||
@@ -826,12 +826,12 @@ parentViewController:(UIViewController*)parentViewController
|
||||
|
||||
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
|
||||
{
|
||||
return UIInterfaceOrientationLandscapeRight;
|
||||
return UIInterfaceOrientationPortrait;
|
||||
}
|
||||
|
||||
- (NSUInteger)supportedInterfaceOrientations
|
||||
{
|
||||
return UIInterfaceOrientationMaskLandscape;
|
||||
return UIInterfaceOrientationMaskPortrait;
|
||||
}
|
||||
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
|
||||
|
||||
Reference in New Issue
Block a user