I was crawling Dribble and found the attached design. I was wondering how to do a custom navigation bar like this. I mean how create the navigation bar once and reuse it implicitly for every view controllers.
I was thinking about having a kind of root view controller and inherit for other view controllers, but I don't know how to do this.
Any idea or link will be appreachated!
Cheers.
Cyril
You can use the stock UINavigationController and hide the UINavigationBar.
Then, make your own subclass of UIViewController which has all of the navigation elements, and then a flexing size view where the contents go. Make all of your classes subclass this element and draw into the view. The button simply has to call
[self.navigationController popViewControllerAnimated:YES]
and the UILabel at view just has to set its text toself.title
.