How to customize your UINavigationBar in iOS4 and iOS5 (and presumably iOS6) [#iosdev]

Again with the customization of a UINavigationBar. No one likes blue.

At any rate, I can’t believe that I completely forgot how to do this. It’s like two months of Java and SQL erased my Cocoa/Objective-C side of my brain.

Thanks to the following article for a refresher course.

Mladjan Antic

As you know, until iOS 5 came out, we used drawRect override in AppDelegate to customize UINavigationBar. Now iOS 5 give us some new method for styling (and old doesn’t work). How to build app that will work on iOS 4 and iOS 5 with stylized UINavigationBar? You must to do both!

Obrigado!