我目前正在使用苹果的 PHPickerViewController。效果很好,但每当我切换到专辑部分时,取消按钮就会将颜色更改为白色,使其几乎不可见。当我切换回全部时,它保持白色。像这样:
初始化选择器的代码:
var config = PHPickerConfiguration(photoLibrary: .shared())
config.selectionLimit = 50
config.filter = .images
let vc = PHPickerViewController(configuration: config)
vc.delegate = self
present(vc, animated: true, completion: nil)
有什么想法吗?
我遇到了同样的问题,结果我将
UINavigationBar
tintColor
设置为 UIColor.white
。
UINavigationBar.appearance().tintColor = UIColor.white
检查您是否实现了相同的代码并尝试删除它以解决问题。