Swift - Present another view controller with its navigation bar
I fixed the problem using the following code:
let editorViewController = IMGLYMainEditorViewController()
let navEditorViewController: UINavigationController = UINavigationController(rootViewController: editorViewController)
self.presentViewController(navEditorViewController, animated: true, completion: nil)
I just added the navEditorViewController
as it made my navigation bar with its items to appear.
Try self.navigationController!.pushViewController(...)