我这样调用 SearchViewController
[self.navigationController pushViewController:SearchViewController animated:YES];
在 SearchViewController 中我不想要导航栏,我想完全隐藏它,任何人都可以在这方面帮助我。
最佳答案
隐藏导航栏:
[[self navigationController] setNavigationBarHidden:YES animated:YES];
显示导航栏:
[[self navigationController] setNavigationBarHidden:NO animated:YES];
我建议阅读文档 here , 这是一本好书。
希望对您有所帮助!
关于ios - 带有 NavigationBarHidden 的导航 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32103083/