gpt4 book ai didi

没有tabBar和navigationBar的IOS PushViewController

转载 作者:行者123 更新时间:2023-11-30 14:18:50 26 4
gpt4 key购买 nike

如何从 tabBarController 和 navigationController 切换到新 View ,并且新 View 中没有 tabBar 和 navigationBar?我需要向右滑动才能返回旧 View 。

self.navigationController?.pushViewController(view, animated: true)

最佳答案

您可以在viewWillAppear方法中隐藏在新 View 导航栏中,即对于navigationBar,只需调用[[self navigationController] setNavigationBarHidden:YESanimated:YES];

关于没有tabBar和navigationBar的IOS PushViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30759732/

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