My goal is whenever i click a button on a first view controller, then it will navigate to another controller which is a navigation controller, but firstViewController and secondViewController has no coection or anything.
Picture
I used this code
@IBAction func buttonTapped(sender: UIButton) {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let vc = storyboard.instantiateViewControllerWithIdentifier("secondViewCtrl") as! SecondViewController
self.presentViewController(vc, animated: true, completion: nil)
}
The problem with this code is that it doesn't present navigation bar and as well as the tab bar. What should I do to show both?

