I created a custom navigation bar and a right navigation button using the XIB. This works fine. But I need to to customize the tint color of the right navigation button. At the moment this tint color is the same color as tint color of navigation bar. I need a different color for this right button. Is there any way to change this color?
Thank you.
In iOS 5 there is 'appearance' feature:
[[UIBarButtonItem appearance] setTintColor:YOUR_COLOR];
Swift 3.x
Not to my knowledge, the button inherits the tint color of the navigationBar. What you can do is set a customView for the navigationItem:
This is how you set it with one of the SDK's buttons:
Instead you can do it like this:
To use an image you made in photoshop etc.
There is als an
initWithCustomView:UIView
orinitWithTitle:NSString
you can use.Sorry no "one-line solution" :)