我使用了这段代码从库中选择图片:
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时,我该怎么做才能不看到背景?
这是截图。我覆盖了我的左侧菜单以隐藏一些敏感信息。