2016-05-14 84 views
3

我用这个代码,请从库中的图像:背景显示时出现的UIImagePickerController

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时,我应该怎么看不到背景?

下面是截图。我覆盖了我的左侧菜单以隐藏一些敏感信息。

enter image description here

+0

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

回答

0

我找到了解决方案,它是很容易。我昨天弄不明白。这是答案;

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