Rickard Liljeberg
Rickard Liljeberg

Reputation: 1018

Adding a toolbar to a navigation controller

enter image description hereI am completely new to ios development and I am only interested in developing for ios5.

I have an app with some scenes, they are mostly tableviews. I also use a navigation controller

I however need to add some status text and buttons that are always visible in all scenes and thought that a toolbar added to the navigation controller should do the trick.

so i thought that i should only have to drag out a toolbar in storyboard to the navigation controller, but it does not stick there. I can add it to the bar underneath with first responder and navigation controller but that does not help me (small icons). I can also not add it to my table view (but if i drag out a plain view I can add it there)

do I have to make my own custom navigation class that the navigate view uses and then programatically add my toolbar?

Upvotes: 2

Views: 12832

Answers (3)

i_duhh_bomb
i_duhh_bomb

Reputation: 300

If you zoom up to 100% on the storyboard it should drag.

Upvotes: 2

Rui Peres
Rui Peres

Reputation: 25907

Well, inside the UINavigationController, you should have something... A UIViewController for instance. You can easily add a UIToolBar by dragging the object inside the UIView of the UIViewController. What might being happening is that as the root view you have the UITableView, in that case I think you can't do that. But to better understand, just take a small print screen of your StoryBoard.

Upvotes: 2

nikans
nikans

Reputation: 2555

Had the same question recently. Check Attributes Inspector in your ViewController's properties in storyboard. There you can define a Bottom Bar.

Attributes Inspector

Upvotes: 13

Related Questions