0

When I self.present to the next VC programatically it always seems to come up as a popover.

I have a Viewcontroller (not embedded in the Navigation Controller or Tab Bar controller). I need to self.present to the Tab Bar controller programatically. I used the code below.

let tabBarController = self.storyboard?.instantiateViewController(withIdentifier: "TabBarController") as! TabBarController
            self.present(tabBarController, animated: false, completion: nil)

Not sure why they only come up as a popover as when I've tried this before it's worked fine.

Junaid
  • 321
  • 1
  • 4
  • 15

0 Answers0