Here is what I have in my viewDidLoad method:
self.navigationController?.navigationBar.backIndicatorImage = UIImage(named: \"back\")
self.navigationControlle
You can use renderingMode
for your custom image with AlwaysOriginal
mode. See below code for solved it.
self.navigationController?.navigationBar.backIndicatorImage = UIImage(named: "back")?.imageWithRenderingMode(.AlwaysOriginal)
self.navigationController?.navigationBar.backIndicatorTransitionMaskImage = UIImage(named: "back")?.imageWithRenderingMode(.AlwaysOriginal)
Hope that helps!
Quickest solution
.navigationController?.navigationBar.tintColor = UIColor.redColor()
Or you can create custom barButton item, with custom view
Set the tintColor property of the barbuttonItem.
self.navigationItem.backBarButtonItem.tintColor = "any color"