Take the 2-minute tour ×

I have seen a project with the following storyboard:

I would like to know how it has been built the CustomerPagesViewController as NavigationController, i don't see a RootNavigationController for it.

In short terms ... how can i define a UINavigationController that embeds a ViewController?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

When you drag and drop a navigation controller in storyboard, it will create two controllers (two scenes to be more precise): a navigationbar controller and a tableview controller that will be defined as your rootview controller. All you have to do is replace your tableview controller by your custom controller: it will be embedded in your navigation controller.

EDIT Sorry I think i mislead you in my first answer: it doesn't look like you can simply replace one controller by another. If you want a custom view controller embedded in a navigation controller a better approach would be:

  1. Drag and drop a view controller on storyboard
  2. Reference your custom view controller by editing the custom class field in the identity inspector
  3. Drag and drop a navigation controller on storyboard
  4. select your custom view controller and select from editor the embed in option by choosing navigation controller: your navigation controller should now contains your view controller. You can deleted the tableview controller that was created when you drag and drop the navigation bar controller.
share|improve this answer
It's ok for the first navigation controller, but in the image i see a second controller on the right that has not a bound navcontroller... How can it be built? –  Cris Dec 31 '12 at 10:28
which second controller are u referring here the one on your pic? –  tiguero Dec 31 '12 at 11:01
CustomerPagesViewController ; it is a navigationcontroller but really don't know how it has been created –  Cris Dec 31 '12 at 11:08
The name reflected is just the name of a customViewController (this has been set-up in the identity inspector under custom class in IB) –  tiguero Dec 31 '12 at 11:13

It sounds like a tutorial on storyboards might help. Ray Wenderlich has a good one on his site. See this link:


This tutorial will also show you how to create a UINavigationController with a UIViewController in the storyboard.


share|improve this answer

Your Answer


