我在UiVIewController中有一些代码,如下所示
self.navigationController?.addChildViewController(someNavigationController)
self.navigationController?.view.addSubview(someNavigationController.view)
someNavigationController.didMove(toParentViewController:self.navigationController!)
但是子项navigationController的topviewcontroller从未出现。知道为什么吗?