diff --git a/src/ios/classes/CameraParameter.m b/src/ios/classes/CameraParameter.m index 5c5e933..118970d 100644 --- a/src/ios/classes/CameraParameter.m +++ b/src/ios/classes/CameraParameter.m @@ -46,7 +46,7 @@ fQuality = [[command argumentAtIndex:0] intValue]; - bOpacity = true; //[[command argumentAtIndex:7] boolValue]; + bOpacity = false; //[[command argumentAtIndex:7] boolValue]; nDefaultFlash = 2; //[[command argumentAtIndex:8] intValue]; bSwitchFlash = true; //[[command argumentAtIndex:9] boolValue]; nDefaultCamera = 0; //[[command argumentAtIndex:10] intValue]; diff --git a/src/ios/classes/CustomCamera.m b/src/ios/classes/CustomCamera.m index a2e9f1a..d2e77ce 100755 --- a/src/ios/classes/CustomCamera.m +++ b/src/ios/classes/CustomCamera.m @@ -495,7 +495,6 @@ static NSString* toBase64(NSData* data) { nDestType = 0; CameraParameter *param = [[CameraParameter alloc] initWithCommand:lastCommand]; - if (nSourceType == 0) { UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; @@ -544,6 +543,9 @@ static NSString* toBase64(NSData* data) { } } }]; + if (@available(iOS 13.0, *)){ + cameraViewController.modalPresentationStyle = UIModalPresentationFullScreen; + } [self.viewController presentViewController:cameraViewController animated:YES completion:nil]; } }