I have UIToolbar
(inside my UINavigationController
) with some UIBarButtonItem
s on it.
Toolbar is blue
(isTranslucent = false
), button is white
. Default highlight color is gray
and it looks ugly.
The only solution I found is to change UIBarButtonItem
's tintColor
in @IBAction
touch event. But I have many UIBarButtonItem
s and its pretty annoying to write a plenty of code in every @IBAction
.
Do you know how to change it globally or, at least, subclass UIBarButtonItem
to define it once and use this class everywhere?
I use swift 3, deployment target is iOS 9+