我已经开始在我的项目中使用Eureka了。 Eureka不使用自定义导航控制器。在我使用Eureka的ViewControllers中,我需要使用原生导航控制器。打开ViewController的代码:
let vc = storyboard!.instantiateViewControllerWithIdentifier("ViewControllerWithEurekaForm") as! ViewControllerWithEurekaForm
let navigationController = UINavigationController(rootViewController: vc)
self.presentViewController(navigationController, animated: true, completion: nil)
但是,当我点击回到之前的ViewController时,代码:
let controller : ViewControllerWithCustomNavigation = self.storyboard?.instantiateViewControllerWithIdentifier("ViewControllerWithCustomNavigation") as! ViewControllerWithCustomNavigation
self.navigationController?.pushViewController(controller, animated: false)
我还有来自rootViewController的导航控制器(以前的控制器和Eureka)。如何返回ViewController(ViewControllerWithCustomNavigation)并拥有自定义导航控制器?