D
D
Dmitry Zamula2014-01-06 15:29:32
iOS
Dmitry Zamula, 2014-01-06 15:29:32

How to change NavigationBar color?

How can I change the color of the NavigationBar (the bar at the top of the NavigationController) ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timokhin, 2014-01-06
@DimkaMind

For the entire application (in the AppDelegate):
For a single controller:

[self.navigationController.navigationBar setBackgroundColor:[UIColor redColor]];

A
Almas Sapargali, 2014-01-06
@asapargali

setTintColor:the above does not change the color of the bar, but the color of its elements, for example, UIBarButtonItems located in it. If you need to change the color of the bar itself, use setBarTintColor:.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question