修复iso13相机未全屏的问题

This commit is contained in:
zher52 2020-12-30 14:27:57 +08:00
parent 739cb20679
commit 47da7a7c29
2 changed files with 4 additions and 2 deletions

View File

@ -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];

View File

@ -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];
}
}