---
title: "底部菜单不显示TabBar"
author: "2014马年"
date: "2016-04-14T22:53:52Z"
tags: []
categories: ["移动开发"]
slug: "tabbar"
draft: false
lastmod: "2016-04-14T22:53:52Z"
id: 2291410
url: "https://20142014.iteye.com/blog/2291410"
---

试过了 设置

 

hidesBottomBarWhenPushed

 

但是不行无效

 

直接设置 

 

self.tabBarController?.tabBar.hidden 

非常麻烦，有的显示，有的页面隐藏，担心忘记还原了

 

所有有了以下的方法：

![](http://dl2.iteye.com/upload/attachment/0116/6337/20e6b055-8996-3886-b6e2-acf16429e5e6.png)