Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

alahab2
9,709 PointsTab bar controller disappears after a segue
My app consists of the following views:
- Tab bar Controller
- First View Controller with a Map View
- Table View Controller
The simplified idea is that when a user clicks on a cell in the Table View, a new view with a Map opens.
I used following code for the segue:
``` override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { self.performSegueWithIdentifier("findPlace", sender: indexPath) }
I also created a segue between the Table View and the First View Controller and named it "findPlace".
My problem is that when the segue triggers, the map opens, but the tab bar controller disappears.
Any idea why it happens and how can i fix it?
Thanks in advance!
Guys @[CJ Marchione](https://teamtreehouse.com/cjmarchione) @[David Tonge](https://teamtreehouse.com/gonetillnov) @[Chris Upjohn](https://teamtreehouse.com/chrisupjohn) maybe you can help... I've been stuck with it for a few days now...
1 Answer

dungeonkeeperhf
3,272 PointsMy best guess is that your mapView will indeed cover the tableview although it's a shot in the dark without seeing more of your code, like the way the way your view controllers are set out.
Thanks, Alex
alahab2
9,709 Pointsalahab2
9,709 Pointsdungeonkeeperhf I did not do any additional set up programmatically. Here is how my storyboard looks like:
https://www.dropbox.com/s/wij7fq8rk3s81z9/Screen%20Shot%202015-01-13%20at%2012.17.56%20am.png?dl=0
When i simply use the tab bar it properly switches between the views, but the tab bar disappears as soon as the segue is triggered.