For an application I\'m developing, I need to display a custom back button in a navigation bar. I have the button asset as a PNG image, and I\'m writing this code:
The backBarButtonItem
property works as intended, but it will always add its standard button shape and color based on the navigation bar tint color.
You can customize the text, but not replace the image.
One workaround, as Andrew Pouliot suggested, is to use leftBarButtonItem
instead, but I stuck to the standard button instead.