答案 0 :(得分:1)
您应该能够使用tintColor属性更改条形按钮项的文本颜色
override func viewDidLoad() {
super.viewDidLoad()
self.title = "Testing"
navigationController?.navigationBar.prefersLargeTitles = true
navigationController?.navigationBar.tintColor = .red
}
答案 1 :(得分:0)
largeTitleTextAttributes
将完成这项工作!
这是一个示例:
navigationController?.navigationBar.largeTitleTextAttributes = [NSAttributedStringKey.foregroundColor: UIColor.gray]
答案 2 :(得分:0)
navigationController.navigationBar.tintColor =。无论怎么做!