I have an iOS app that uses a custom back chevron for the back button in navigation bars with custom background colors and shadows and such. I'd like to set the color of that back indicator image to something besides the default blue. How do I do that with the new UINavigationBarAppearance
APIs?
I have tried:
titleTextAttributes
on the normal
variant of the buttonAppearance
, specifying NSForegroundColorAttributeName
titleTextAttributes
on all variants of the backButtonAppearance
, specifying NSForegroundColorAttributeName
and NSBackgroundColorAttributeName
tintColor
on the navigation bar directly - this affects the back indicator during animation of a new navigation item, but at the end of the animation it goes back to blue.The tintColor
works for me. The attached screencast shows (using slow animations) that having set the tint color to black, it stays black, both pushing and popping: