-1

So I've created a tab bar application with more than five tabs and therefore a automatic generated Navigation bar comes to life. Fair enough, only thing is, that I want a Black opaque Navigation bar. Seen the questions about this asked before, but none of the info there helped me any. Anyone has a complete code for this? What to put in the .h and .m file?

I want the navigation bar black, the "edit"-button black, the "done" button black, the "back"-button black and also the other automatic generated navigation bars to be black. I'm sorry if I'm asking to much here, but there ain't so much info on the particular topic.

In advance, thanks!

Best regards, Øyvind Larsen Runestad.

1 Answers1

0

That's the property you're looking for:

@property(nonatomic, retain) UIColor *tintColor;

As for changing the color of the items, it's a matter of changing the color of every single UINavigationItem. See this question to know how to do it:

Change UINavigationItem colour

As for "What to put in the .h and .m file?" you should write the code whenever you need to change the color of the items, so say that you need it when the view is loaded, then you do it in the viewDidLoad method, provided that you have already added the navigation bar.

Community
  • 1
  • 1
Ramy Al Zuhouri
  • 21,580
  • 26
  • 105
  • 187