I have issue when set UINavigationBar tintColor.
It is misbehaving
I'm using xcode 11.3.1, swift 5, iOS 13.3
*MyClass
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
self.title = "test"
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
self.navigationController?.navigationBar.tintColor = #colorLiteral(red: 0.9708816409, green: 0.4246639013, blue: 0.3480253518, alpha: 1)
}
*result
real device https://i.stack.imgur.com/TB3Sp.jpg
simulator https://i.stack.imgur.com/RMV7n.jpg
I want to set back button color like title
I only get error on real device
Please help me
Thank you
To set back button and hide "back":
You should but this code to the
ViewControllerbefore push the new one.