我正在使用 UIPickerViewController 来捕捉照片,但我得到的布局如下:
正如您在图像中看到的 - 切换相机按钮未正确显示。
下面是我的代码
UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
imagePickerController.modalPresentationStyle = UIModalPresentationOverCurrentContext;
imagePickerController.mediaTypes = @[(NSString *)kUTTypeImage];
imagePickerController.sourceType = type;
imagePickerController.delegate = self;
imagePickerController.navigationBarHidden = YES;
imagePickerController.cameraDevice = UIImagePickerControllerCameraDeviceFront;
self.imagePickerController = imagePickerController;
[self presentViewController:self.imagePickerController animated:YES completion:nil];
我不确定我做错了什么,请建议
谢谢