我创建了一个 View Controller ,它需要能够使用自己的导航栏,但仍包含在导航堆栈中。我已经通过简单地隐藏 UINavigationController 的导航栏,然后在每个 View Controller 中添加一个假导航栏来解决这个问题。这样,每次插入 View Controller 时,我都会看到以下外观。
最佳答案
在哪个 View Controller 上您需要在该 View Controller 上使用自定义导航栏,在viewWillAppear
中隐藏导航栏并在viewDidDisappear
中再次显示。因此,对于特定的 View Controller 来说,它将被隐藏。并在 viewDidload
关于ios - 使用(或不使用)导航 Controller 的栏推送到导航堆栈,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37630412/