iOS菜鸟食谱

[iOS] TabBarController push后隐藏Ta

2016-01-08  本文已影响2250人  老初

在 TabBarController 中 push 到下个界面时,如果不做任何设置,在 push 后的界面是可以看到 TabBar 的。
有两种办法可以隐藏:

let viewController = SecondViewController()
viewController.hidesBottomBarWhenPushed = true
self.navigationController?.pushViewController(viewController, animated: true)
上一篇下一篇

猜你喜欢

热点阅读