gpt4 book ai didi

ios - 如何从 UINavigationController 中隐藏 UINavigationBar?

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:21:40 24 4
gpt4 key购买 nike

我有一个嵌入在 UINavigationController 中的 View Controller ,如何隐藏 UINavigationBar?我想要导航功能,但我不想要顶部的栏..

发送

最佳答案

这应该有效:

[self.navigationController setNavigationBarHidden:YES animated:YES];

要取回它,只需调用:

[self.navigationController setNavigationBarHidden:NO animated:YES];

来源:How to hide the UINavigationBar for my first view

关于ios - 如何从 UINavigationController 中隐藏 UINavigationBar?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27514934/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com