这里我使用下面的代码.如果有人知道这个问题,请帮助我.
我也试过下面的网址,但它不起作用.请帮我
我也试过下面的网址,但它不起作用.请帮我
iOS7 UIImagePickerController cancel button disappear
UIImagePickerController inside UIPopoverController doesn’t show Cancel button on iOS7
UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.allowsEditing = YES; picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; [self presentViewController:picker animated:YES completion:NULL]; picker.navigationBar.tintColor = [UIColor redColor]; picker.navigationBar.barStyle = UIBarStyleBlackOpaque; picker.navigationBar.topItem.rightBarButtonItem.tintColor = [UIColor blackColor];
我的问题:
我的需求:
解决方法
这对我有用:
present(imagePicker,animated: true,completion: { imagePicker.navigationBar.topItem?.rightBarButtonItem?.tintColor = .black })