خرید بک لینک

Vote count: 0

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

enter image description here

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?

asked 27 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 3 تير 1395 ساعت: 20:02

صفحه بندی