How can I change the UINavigationBar of a UINavigationController?

I ended up using the iOS5 UIKit appearance proxy: UINavigationBar appearance setBackgroundImage:UIImage imageNamed:@"header" forBarMetrics:UIBarMetricsDefault No subclassing, or categories needed.

I ended up using the iOS5 UIKit appearance proxy: UINavigationBar appearance setBackgroundImage:UIImage imageNamed:@"header" forBarMetrics:UIBarMetricsDefault; No subclassing, or categories needed.

Edit for future readers, the answer below does not work anymore on iOS 5. You can't just set it to the existing instance, because UINavigationController has a readonly property for navigationBar. And I don't think subclassing a UINavigationController is what you want.

I recon the best way to do this is to create a category that extends a UINavigationBar, as discussed here.

I originally had it as a category which worked fine, but iOS5 breaks this functionality, and it is now bad practice to use categories to over-ride actual methods. So I decided to subclass it. It works when I set the navigation bar in IB, but I also need to set it programatically... – Sheehan Alam Oct 23 at 22:45 I was not aware of that.

What about option no. 3 in this answer? Stackoverflow.Com/questions/1869331/… – Wolfert Oct 23 at 22:50 Just posted an answer, I used iOS5 UIKit appearance proxy – Sheehan Alam Oct 24 at 2:28.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send