如何从 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/