How to change the color of the navigation bar in more than one table view controller
Posted
by
Dctennisboy
on Stack Overflow
See other posts from Stack Overflow
or by Dctennisboy
Published on 2013-11-06T01:47:39Z
Indexed on
2013/11/06
15:53 UTC
Read the original article
Hit count: 233
I am trying to figure out how to change the color of the table view navigation bar in multiple table views. The table views are all connected to a navigation controller. For example, I want one navigation bar to be blue, but another to be red. I have tried the code below in the AppDelegate.m file, but it just changes all the navigation bars to the same color. Is there anywhere else I could place this code to change the color in specific places. I've heard that I need to create new files, but I don't know where to place the code, or what code to use in the new files. I am somewhat new to this. Any suggestions would be greatly appreciated![[UINavigationBar appearance] setBarTintColor:[UIColor orangeColor]];
© Stack Overflow or respective owner