Ios 出现UIImagePickerController时显示背景

Ios 出现UIImagePickerController时显示背景,ios,objective-c,uiimagepickercontroller,Ios,Objective C,Uiimagepickercontroller,我使用以下代码从库中选择图像: UIImagePickerController *imagePicker = [[UIImagePickerController alloc]init]; imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; imagePicker.allowsEditing = YES; imagePicker.delegate = self; [self presentViewContr

我使用以下代码从库中选择图像:

UIImagePickerController *imagePicker = [[UIImagePickerController alloc]init];
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
imagePicker.allowsEditing = YES;
imagePicker.delegate = self;
[self presentViewController:imagePicker animated:YES completion:^{viewLoadPhotoBg.hidden = YES;}];
我也在我的项目中使用左菜单库。当UIImagePickerController出现时,左侧菜单显示在背景中。我猜UIImagePickerController的背景色是清晰的,根据我的搜索,一些答案说没有办法更改背景色

在显示UIImagePickerController时,我应该做什么才能不看到背景

这是截图。我把左边的菜单盖上,以隐藏一些敏感信息


我找到了解决方案,非常简单。我昨天想不出来。答案是这样的

imagePicker.view.backgroundColor = [UIColor whiteColor];
imagePicker.view.alpha = 1.0;

有一些应用程序或代码的截图吗?