Gleb
Gleb

Reputation: 380

Show tab bar on modal View


On click button "Go!" show white View Controller.
I want show tabbar on white ViewController, but it doesn't show. How i make this correctly? Swift please, thanks.

storyboard screen

Upvotes: 0

Views: 1426

Answers (3)

ImWH
ImWH

Reputation: 944

Do this in firstView,so the firstViewController embed in NavigationController,then make a push segue,the tabBar will not dismiss.

enter image description here

Upvotes: 2

Dharmesh Kheni
Dharmesh Kheni

Reputation: 71852

I think you are using wrong segue just delete old segue and add new segue this way by pressing control keyenter image description here:

Upvotes: 0

Avijit Nagare
Avijit Nagare

Reputation: 8802

You have to use navigation controller to see tab bar. by presenting modally you can't get tab bar in white controller.

Swift code:

let secondViewController = self.storyboard.instantiateViewControllerWithIdentifier("SecondViewController") as SecondViewController

self.navigationController.pushViewController(secondViewController, animated: true)  

Upvotes: 1

Related Questions