以下是上述问题的代码行。此问题发生在Swift 4.1
.
let textAttributes = [NSAttributedStringKey.foregroundColor:UIColor.white]
navigationController?.navigationBar.titleTextAttributes = textAttributes
以下是上述问题的代码行。此问题发生在Swift 4.1
.
let textAttributes = [NSAttributedStringKey.foregroundColor:UIColor.white]
navigationController?.navigationBar.titleTextAttributes = textAttributes