0

I've looked around and been unable to find a clear example/explanation of how to do this. I've just started with swift, apologies if any terminology is off.

What I'm looking to do is add a NavigationController to one of my TabBarItems in a way that I can view multiple views from utilizing the NavigationController while still staying within that TabBarItem view

So far I have the TabBar created, with three items. I don't mind doing it in either storyboard or programatically.

jshbrmn
  • 1,737
  • 3
  • 22
  • 52
  • I'm not at a computer right now so I can't test it. But have you tried in the storyboard giving each page view controller it's own navigation controller and making the navigation controllers the view controllers pointed to by the tab bar controller? – Bennie Jan 23 '15 at 22:15
  • 1
    Here's the Storyboard example: http://stackoverflow.com/a/26153273/1630618 – vacawama Jan 23 '15 at 22:15
  • In storyboard, create your scene, embed that in a Navigation controller then embed the navigation controller in a tab controller - pretty straightforward. In code create ViewController, set it as the root of navigation controller and then add the navigation controller to a tab bar controller – Paulw11 Jan 23 '15 at 22:16

1 Answers1

2

In the storyboard give each page view controller it's own navigation controller and make the navigation controllers the view controllers pointed to by the tab bar controller. Do it like so: https://stackoverflow.com/a/26153273/1527064 navigation controllers with tab bar controller

Community
  • 1
  • 1
Bennie
  • 339
  • 2
  • 12