我可以很好地更改标题外观及其工作但我无法更改提示字体和颜色
答案 0 :(得分:3)
在viewWillAppear(_ animated: Bool)
:
for view in self.navigationController?.navigationBar.subviews ?? [] {
let subviews = view.subviews
if subviews.count > 0, let label = subviews[0] as? UILabel {
label.textColor = UIColor.white
label.font = UIFont.systemFont(ofSize: 30)
}
}