SHARE
TWEET

Untitled

a guest Oct 21st, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (void)scanBarcode {
  2.    
  3.     NSString* errorMessage = [self setUpCaptureSession];
  4.     if (errorMessage) {
  5.         [self barcodeScanFailed:errorMessage];
  6.         return;
  7.     }
  8.  
  9.     self.viewController = [[CDVbcsViewController alloc] initWithProcessor: self alternateOverlay:self.alternateXib];
  10.     // here we set the orientation delegate to the MainViewController of the app (orientation controlled in the Project Settings)
  11.     self.viewController.orientationDelegate = self.plugin.viewController;
  12.    
  13.     //Here add for ios 13 set view controller to fullscreen
  14.     if (@available(iOS 13.0, *)) {
  15.          [self.viewController setModalPresentationStyle: UIModalPresentationFullScreen];
  16.     }
  17.    
  18.     // delayed [self openDialog];
  19.     [self performSelector:@selector(openDialog) withObject:nil afterDelay:1];
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top