我的设置是:
UINavigationController
- > RootParentViewController
然后ParentViewController
有一个UIContainerView
。在那里我加载动态内容(其他的UIViewController
孩子)。
当我从:
转换时 UINavigationController
- > RootParentViewController
(ChildViewController
) - >另一个ChildViewController
使用(它正在工作):
self.navigationController?.pushViewController(subCategoryViewController, animated: true)
我创建了自定义后退按钮(设计原因),但是当我打电话时:
self.navigationController?.popViewControllerAnimated(true)
虽然正在调用ChildViewController
的{{1}}(就像隐藏父母一样),但它正在弹出viewDidAppear
答案 0 :(得分:0)
我明白了,
问题是,我在childViewController中设置了navigationBarHidden。然后当我弹出时,导航继续隐藏。