UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
imagePicker.delegate = self;
imagePicker.navigationBar.translucent = NO;
[_controller presentViewController:imagePicker animated:YES completion:nil];
iOS13系統(tǒng)下 設(shè)置了translucent = NO方法還是沒效果,最后在自定義navigationController里加了這個好了
[[UINavigationBar appearance] setTranslucent:NO];