diff --git a/src/ios/CDVBarcodeScanner.mm b/src/ios/CDVBarcodeScanner.mm index e9e6302a..66ee7f4a 100644 --- a/src/ios/CDVBarcodeScanner.mm +++ b/src/ios/CDVBarcodeScanner.mm @@ -820,21 +820,18 @@ - (UIImage*)buildReticleImage { #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