Swift PHPickerViewController 取消按钮改变颜色

问题描述 投票:0回答:1

我目前正在使用苹果的 PHPickerViewController。效果很好,但每当我切换到专辑部分时,取消按钮就会将颜色更改为白色,使其几乎不可见。当我切换回全部时,它保持白色。像这样:

View pops up

Switching to albums changes color

初始化选择器的代码:

        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)

有什么想法吗?

ios swift phpickerviewcontroller
1个回答
0
投票

我遇到了同样的问题,结果我将

UINavigationBar
tintColor
设置为
UIColor.white

UINavigationBar.appearance().tintColor = UIColor.white

检查您是否实现了相同的代码并尝试删除它以解决问题。

© www.soinside.com 2019 - 2024. All rights reserved.