views:

67

answers:

1

Here's a little blogpost on the library: http://www.andrewljohnson.com/article/Customizing%20UINavigationControlBar%20-%20Controls%20and%20Images

And here's a link directly to the GitHub repository: http://github.com/andrewljohnson/NavControlBar/tree/master

I searched SO and the rest of the internets for how best to do this recently, and I decided this was the way!

+1  A: 

We have something like this for an app we are working on so we can have custom view transitions.

A piece of advice, if you want this to work correctly with view controllers written to work in a normal navigation controller you need to manually invoke their view(Will|Did)(Appear|Disappear): methods at the appropriate times.

Also, in order to make -[UIViewController navigationController] work in the expected way with your navigation controllers you have to do some particularly unsavory things.

Louis Gerbarg
Well, this completely replaces UINavigationController... we don't use that at all.
Andrew Johnson
Yes, but it doesn't change the fact that UIViewController knows about UINavigationController. In other words, you are not just replacing UINavigationController, but imposing new design constraints on any UIViewControllers hosted in your controller. If you want people to use it as a drop in replacement then it should support the standard entry points.
Louis Gerbarg