I have a navigation controller that pushes a UIViewController. I would like to change the tint color of the back button of the navigation item when a user presses on a certain button. Is this possible? I have tried using [UIBarButtonItem appearance] setTintColor: but it only works on initialization (for example in viewDidLoad) and not otherwise.
I have a navigation controller that pushes a UIViewController. I would like to change
Share
Try this……
You need to use a UIBarButtonItem with a custom view. Something like this:
And put the button to the navigation bar, usually in a controller with UINavigationController: