ios - Change NavigationBar Tint/Colour to different values for each ViewController in a Navigation Stack -


Okay, this is a strange problem I'm not able to understand, and at least here, as far as I can get ...

I have a new controller with 4 push segues, which is in the new view controllers. And I have to show the different colors of the navigation bar for each scene.

What I see is override my first entry in the stamp in the VC, and then I am unable to update it since.

In my presenting VC, I do this (to create bar bar / invisible bar). Navigation Controller Navigationbar setbackground image: [UIImage new] forBarMetrics: UIBarMetricsDefault]; Self.navigationController.navigationBar.shadowImage = [UIImage new]; [Self. Navigation Controller Navbarbar setback color color: [UIColor clearColor]];

Then in my pushed VC, I change the background color to a different color ...

  [self.navigationController.navigationBar setBackgroundColor: bgColor ];   

When I press back to go to the VC presented, then the color of the vice-versa kept pushed ...

Any thoughts ??

Oh dumb mistake, but posting a reply to the community here

My NavBar Code view was in deedload, which is definitely never called again if it is a ViewController presenting in a navigation controller ...

WillAppear decides to move the code to see it.

Breakpoints Tutorials!

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -