qwertydev qwertydev - 6 months ago 14
Swift Question

Present a UIViewcontroller with navigation?

I am new to programming. I just want to know is it possible to push further UIViewcontrollers on a presented



Yes actually you can present a UIViewcontroller with navigationController. All you need to do is to give reference to Your navigation controller while presenting controller.

 let navigationController =     UINavigationController(rootViewController: "controller to present")
 self.navigationController?.presentViewController(navigationController, animated: true, completion: nil)