mirror of
https://github.com/wahyd4/BarcodeScanner.git
synced 2026-08-10 13:35:55 +10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87ffa13f2c | ||
|
|
413b023697 |
+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.1.2">
|
||||
version="0.2.0">
|
||||
|
||||
<name>BarcodeScanner</name>
|
||||
|
||||
|
||||
@@ -820,21 +820,18 @@ parentViewController:(UIViewController*)parentViewController
|
||||
#pragma mark CDVBarcodeScannerOrientationDelegate
|
||||
|
||||
- (BOOL)shouldAutorotate
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
|
||||
{
|
||||
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(shouldAutorotate)]) {
|
||||
return [self.orientationDelegate shouldAutorotate];
|
||||
}
|
||||
|
||||
return YES;
|
||||
return UIInterfaceOrientationLandscapeRight;
|
||||
}
|
||||
|
||||
- (NSUInteger)supportedInterfaceOrientations
|
||||
{
|
||||
if ((self.orientationDelegate != nil) && [self.orientationDelegate respondsToSelector:@selector(supportedInterfaceOrientations)]) {
|
||||
return [self.orientationDelegate supportedInterfaceOrientations];
|
||||
}
|
||||
|
||||
return UIInterfaceOrientationMaskPortrait;
|
||||
return UIInterfaceOrientationMaskLandscape;
|
||||
}
|
||||
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
|
||||
|
||||
Reference in New Issue
Block a user