Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
[0.2.1][ios] lock scanner to portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Willoughby committed Dec 12, 2012
1 parent 87ffa13 commit 084594d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Expand Up @@ -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>

Expand Down
4 changes: 2 additions & 2 deletions src/ios/CDVBarcodeScanner.mm
Expand Up @@ -826,12 +826,12 @@ - (BOOL)shouldAutorotate

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationLandscapeRight;
return UIInterfaceOrientationPortrait;
}

- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscape;
return UIInterfaceOrientationMaskPortrait;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
Expand Down

0 comments on commit 084594d

Please sign in to comment.