1

I am fairly new to programming with objective-c and xcode 4 and I am trying to make a tab bar application and add a navigation control to a specific tab.

I am able to add a navigation controller inside the tab bar controller, by clicking dragging the navigation controller into the tab bar controller of the MainWindow.xib window. However, by doing this and linking the class and nib to the corresponding view controller and view, respectively, this adds a new tab, which I don't want (as I want a specific/already in existence tab to also contain the nav controller). Thanks.

yuji
  • 16,695
  • 4
  • 63
  • 64
bob
  • 11
  • 1
  • It's possible, check out this post: [http://stackoverflow.com/questions/369128/tab-bar-application-with-navigation-controller][1] [1]: http://stackoverflow.com/questions/369128/tab-bar-application-with-navigation-controller – Boon Feb 27 '12 at 21:34

1 Answers1

0

I'm not sure what you exactly want to do, but as my understanding, you want navigation controller under tabbar item that is already existed in the tabbar controller. It's not good practice to do it in that way. Rather than that, try add navigation controller first and then add ViewController inside of it (which makes your life easier). Usually Navigation Controller is root of ViewController, but not vice verse. Hope this help.

REALFREE
  • 4,378
  • 7
  • 40
  • 73