Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement