本文介绍了没有tabBar和navigationBar的iOS pushViewController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从tabBarController和navigationController切换到新视图,并且新视图中没有tabBar和navigationBar?我需要向右滑动才能恢复旧视图.

How can I switch to a new view from tabBarController and navigationController and that there was no tabBar and navigationBar in a new view? And I need working swipe right for back old view.

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

推荐答案

self.navigationController.navigationBarHidden = YES;
self.tabBarController.tabBar.hidden = YES;

这篇关于没有tabBar和navigationBar的iOS pushViewController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 17:23