UIImagePickerController 在iOS11中調(diào)起相冊(cè)時(shí) 照片被導(dǎo)航欄遮擋,添加?translucent = NO
UIImagePickerController*imagePicker=[[UIImagePickerController alloc]init];
imagePicker.sourceType=UIImagePickerControllerSourceTypePhotoLibrary;
imagePicker.delegate=self;imagePicker.navigationBar.translucent=NO;[self presentViewController:imagePicker animated:YES completion:nil];
即可解決,但是在iOS13中設(shè)置以上發(fā)現(xiàn)沒有效果,在自定義的navigationController 中添加
[[UINavigationBar appearance]setTranslucent:NO]; 解決。