Possible Duplicate:
Custom UINavigationBar Background
I am creating my uinavigation controller programatically in the application delegate. I have a class that subclasses UINavigationBar and would like to assign that as the controller's navigation bar. In IB, I would just select the controller, its bar and change the class from the default to my custom class. However I don't know how to do this in code. Any help would be greatly appreciated.