Creating custom buttons in a UINavigationController
I have an app, that is Tab Bar based. And on each tab there is a UINavigationController. Then on some of the views that are pushed with the Navigation Controller, I need to have some custom buttons on the UINavigationBar for that view. I found some example code that shows how to do that with a UIToolBar and have implemented that. I added the UIToolBar to my .xib for my view, above my table view. And in my code I create the buttons that I needs on there and add them to the toolbar items like so
But when my view is pushed from the previous view, where the toolbar should show up, it shows as completely blank area.
So my questions are:
1) Is this the correct way to do this?
2) Is there another way to add more buttons to a UINavigationBar? If so is there example code anywhere.
I don't know when this started happening, but the code I got said it worked under 2.0+, but under 3.0+ it seems to be broken doing it the way I am doing it.
Hi
I'm stuck on the same problem, can I ask how have you solved?
Quote:
Originally Posted by BitBlasters
I have an app, that is Tab Bar based. And on each tab there is a UINavigationController. Then on some of the views that are pushed with the Navigation Controller, I need to have some custom buttons on the UINavigationBar for that view. I found some example code that shows how to do that with a UIToolBar and have implemented that. I added the UIToolBar to my .xib for my view, above my table view. And in my code I create the buttons that I needs on there and add them to the toolbar items like so
But when my view is pushed from the previous view, where the toolbar should show up, it shows as completely blank area.
So my questions are:
1) Is this the correct way to do this?
2) Is there another way to add more buttons to a UINavigationBar? If so is there example code anywhere.
I don't know when this started happening, but the code I got said it worked under 2.0+, but under 3.0+ it seems to be broken doing it the way I am doing it.