IOS 5 How to change the color of back button in a navigation bar?

Nilesh Tupe picture Nilesh Tupe · Oct 28, 2011 · Viewed 25.6k times · Source

I want to change the color of back button of a navigation bar to make it look like thisenter image description here

Answer

Jacob Relkin picture Jacob Relkin · Oct 28, 2011

Set the backBarButtonItem's tintColor:

self.navigationItem.backBarButtonItem.tintColor = [UIColor redColor];

TIP: If you want this to be applied to all UIBarButtonItem instances in your application by default, then you can use the new UIAppearance API to do just that:

[[UIBarButtonItem appearance] setTintColor:[UIColor redColor]];