2016-05-14 77 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;