gpt4 book ai didi

ios - 在 UIImagePickerController 取消按钮不显示?

转载 作者:技术小花猫 更新时间:2023-10-29 11:02:13 27 4
gpt4 key购买 nike

这里我使用下面的代码。如果有人知道这个问题,请帮助我。我也尝试了以下网址,但它不起作用。请帮助我

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];

我的问题: enter image description here

我的要求: enter image description here

最佳答案

这对我有用:

    present(imagePicker, animated: true, completion: {
imagePicker.navigationBar.topItem?.rightBarButtonItem?.tintColor = .black
})

关于ios - 在 UIImagePickerController 取消按钮不显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28429896/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com