Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)scanBarcode {
- NSString* errorMessage = [self setUpCaptureSession];
- if (errorMessage) {
- [self barcodeScanFailed:errorMessage];
- return;
- }
- self.viewController = [[CDVbcsViewController alloc] initWithProcessor: self alternateOverlay:self.alternateXib];
- // here we set the orientation delegate to the MainViewController of the app (orientation controlled in the Project Settings)
- self.viewController.orientationDelegate = self.plugin.viewController;
- //Here add for ios 13 set view controller to fullscreen
- if (@available(iOS 13.0, *)) {
- [self.viewController setModalPresentationStyle: UIModalPresentationFullScreen];
- }
- // delayed [self openDialog];
- [self performSelector:@selector(openDialog) withObject:nil afterDelay:1];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement