# TableView not visible inside Navigation Controller, which is embeded within tabbar controller

**URL:** <https://forums.kodeco.com/t/tableview-not-visible-inside-navigation-controller-which-is-embeded-within-tabbar-controller/16880>\
**Category:** iOS\
**Created:** [July 3, 2016, 7:29pm UTC](https://forums.kodeco.com/t/tableview-not-visible-inside-navigation-controller-which-is-embeded-within-tabbar-controller/16880 "2016-07-03T19:29:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonny](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jonny/32/79544_2.png) [@jonny](https://forums.kodeco.com/u/jonny)\
**Post date:** [July 3, 2016, 7:29pm UTC](https://forums.kodeco.com/t/tableview-not-visible-inside-navigation-controller-which-is-embeded-within-tabbar-controller/16880/1 "2016-07-03T19:29:47Z")

</div>

I am trying to build a tab bar controller, that has some navigation controllers embedded within. Below is a section of my storyboard:

 ![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/6/b/6bdfc3e919e38f0c4062db511d03146771538fb5.png)

I am just trying to hook up the screens currently. I haven’t even started the data model yet. When I run the simulator though I get the Add Team screen like this:

 ![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/9/9/9981e179120f12221db76eaf7ab3e144a0924235.png)

I can’t see my static table view cells that I use to take input from the user. You can see them in the first image though. I’m not sure why, but I’m guessing maybe wrongly that it’s to do with the `prepareSegue` method.

Mine is like this and taken from the Checklist tutorial:

```
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    if segue.identifier == "AddTeam" {
        let navigationController = segue.destinationViewController as! UINavigationController
        let controller = navigationController.topViewController as! TeamDetailViewController
        controller.delegate = self // set its delegate to itself
    }
}

```

Because my navigation controller is within a tabbar is this why my TableView isn’t displayed? I did try to start by getting the topViewController of the TabBarController, but it doesn’t have this method, so I wasn’t sure how to proceed? If that is even why my Table isn’t being displayed? 😕

---

<div class="post-metadata">

**Author:** ![rcasey](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rcasey/32/82229_2.png) [@rcasey](https://forums.kodeco.com/u/rcasey)\
**Post date:** [July 4, 2016, 4:50pm UTC](https://forums.kodeco.com/t/tableview-not-visible-inside-navigation-controller-which-is-embeded-within-tabbar-controller/16880/2 "2016-07-04T16:50:45Z")

</div>

If your Add Team screen is using a static table view, make sure you delete the following methods.

numberOfSectionsInTableView  
numberOfRowsInSection  
cellForRowAtIndexPath

Hope that helps!

---

<div class="post-metadata">

**Author:** ![marciokoko](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/marciokoko/32/32922_2.png) [@marciokoko](https://forums.kodeco.com/u/marciokoko)\
**Post date:** [July 4, 2016, 5:01pm UTC](https://forums.kodeco.com/t/tableview-not-visible-inside-navigation-controller-which-is-embeded-within-tabbar-controller/16880/3 "2016-07-04T17:01:40Z")

</div>

Otherwise if you are using dynamic cells make sure that you use the reuse cell identifier.

---

<div class="post-metadata">

**Author:** ![jonny](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jonny/32/79544_2.png) [@jonny](https://forums.kodeco.com/u/jonny)\
**Post date:** [July 4, 2016, 5:04pm UTC](https://forums.kodeco.com/t/tableview-not-visible-inside-navigation-controller-which-is-embeded-within-tabbar-controller/16880/4 "2016-07-04T17:04:57Z")

</div>

Thanks rcasey - that was it. Slowly getting there. @hollance’s book has been great so far

---

<div class="post-metadata">

**Author:** ![jonny](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jonny/32/79544_2.png) [@jonny](https://forums.kodeco.com/u/jonny)\
**Post date:** [July 4, 2016, 5:14pm UTC](https://forums.kodeco.com/t/tableview-not-visible-inside-navigation-controller-which-is-embeded-within-tabbar-controller/16880/5 "2016-07-04T17:14:30Z")

</div>

One thing I do notice is that my static cells don’t scroll. I’m collecting 6-7 bits of user info. But the bottom user input you can only see the title. Is there a limit on number of static cells or something I need to adjust manually to allow scrolling?

---

<div class="post-metadata">

**Author:** ![rcasey](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rcasey/32/82229_2.png) [@rcasey](https://forums.kodeco.com/u/rcasey)\
**Post date:** [July 4, 2016, 7:30pm UTC](https://forums.kodeco.com/t/tableview-not-visible-inside-navigation-controller-which-is-embeded-within-tabbar-controller/16880/6 "2016-07-04T19:30:57Z")

</div>

Call up the Attributes Inspector for your table view.  
There is a “Scrolling Enabled” checkbox in there.  
Is it checked?

---

<div class="post-metadata">

**Author:** ![jonny](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jonny/32/79544_2.png) [@jonny](https://forums.kodeco.com/u/jonny)\
**Post date:** [July 5, 2016, 1:47am UTC](https://forums.kodeco.com/t/tableview-not-visible-inside-navigation-controller-which-is-embeded-within-tabbar-controller/16880/7 "2016-07-05T01:47:25Z")

</div>

Thank You! Picking up many things in my journey!
