TheHockeyGeek
TheHockeyGeek

Reputation: 57

Default Navigation Bar Color

I have some items that change the UINavigationBar color when the detail pages are accessed. My issue is getting back to the default UINavigationBar color. What color is it? It is not blue or gray for sure.

Also when going "back", where is the best place to put this color change? Unload does not seem to work for this. On the table view controller, Placing the color change at the end of the "didSelectRowAtIndexPath" changes it prematurely.

What is the default UINavigationBar color? Where should I place the change when the user is leaving the detail view?

Upvotes: 1

Views: 3115

Answers (2)

user4952581
user4952581

Reputation:

Color : [[UINavigationBar appearance] setBarTintColor:[UIColor blackColor]];

Image : [[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"navigationBar_320X44.png"] forBarMetrics:UIBarMetricsDefault];

Upvotes: 0

Brian
Brian

Reputation: 15706

I think you can just set the navigation bar color to nil and it will revert to its default.

Upvotes: 3

Related Questions