Explorar el Código

1.修改Cam Scanner初始化失败时检测权限。

Pen Li hace 9 años
padre
commit
0b0123ff79
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      common/ScannerViewController.m

+ 1 - 1
common/ScannerViewController.m

@@ -260,7 +260,7 @@
                 NSDictionary* infoDict =[[NSBundle mainBundle] infoDictionary];
                 NSDictionary* infoDict =[[NSBundle mainBundle] infoDictionary];
                 NSString *appName = [infoDict objectForKey:@"CFBundleName"];
                 NSString *appName = [infoDict objectForKey:@"CFBundleName"];
                  
                  
-                UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Warning" message:[NSString stringWithFormat:@"Camera access denied, please change %@ setting, allow App use camara. (setting -> privacy -> camera enable %@)",[UIDevice currentDevice].model,appName] preferredStyle:UIAlertControllerStyleAlert];
+                UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Warning" message:[NSString stringWithFormat:@"Camera access denied, please change %@ setting, allow App use camera. (setting -> privacy -> camera enable %@)",[UIDevice currentDevice].model,appName] preferredStyle:UIAlertControllerStyleAlert];
                 UIAlertAction *action = [UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
                 UIAlertAction *action = [UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
                     [weakself dismissViewControllerAnimated:YES completion:nil];
                     [weakself dismissViewControllerAnimated:YES completion:nil];
                 }];
                 }];