Navigation bar's buttons tint color sometimes not set

Posted by Felipe on Stack Overflow See other posts from Stack Overflow or by Felipe
Published on 2009-06-23T13:48:01Z Indexed on 2010/04/22 21:53 UTC
Read the original article Hit count: 476

Filed under:
|

Refer to the following, short video: http://screencast.com/t/cmnsqVTh

The problem is with the color of a navigation bar's back button.

The first time I load the app, the navigation bar + its buttons have the default color. I then push a view controller on the stack, and when the new view loads (in the viewDidLoad method), it sets the navigation bar's tint color to pink. The nav bar's buttons are also pink as expected. I then press the back button, and the view is popped from the stack. On the root view controller's viewWillAppear method I set the tint color back to nil so that it's the default color again. The navigation bar looks as expected. However if I push the view controller on the stack yet again, the navigation bar's tint color is pink, but the back button's color is the default light blue. Hope that was understandable.

So what's the cause of the problem?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk