Search code examples
objective-ciosiconsuinavigationbartextcolor

Objective C: How to change text color in navigation bar


I have changed my navigation bar color via the following code

navconFvc.navigationBar.tintColor = [UIColor colorWithHexString:@"faf6f5"];

The code worked but the text color also needs to be changed (see screenshot below). Also the refresh button logo on the right is affected as well

enter image description here

The same issue occurs if I navigate to another page in the stack

enter image description here

Question: How can I change the color of the

  • title text
  • Back button text and
  • right bar button icon color?

After I changed the background color of the navbar?


Solution

  • For the title here's the way:

    iPhone Navigation Bar Title text color

    And for the custom buttons here's the way:

    adding buttons to ui navigation controller bottom bar