随着ios 13的发布,cordova条码扫描器插件不再全屏显示,但顶部有一个空白。这是因为默认的模式呈现样式已在iOS 13中更改。
您如何解决这一重大更改?
答案 0 :(得分:0)
在cordova-plugin-barcodescanner> CDVBarcodeScanner.mm文件中;在openDialog方法中将viewController的ModalPresentationStyle设置为Fullscreen。
(void)openDialog {
[self.viewController setModalPresentationStyle:UIModalPresentationFullScreen];
[self.parentViewController
presentViewController:self.viewController
animated: NO completion:nil];
}