```
    availableButton.frame = CGRectMake(0, screenHeight - tabBarHeight!, CGFloat(screenWidth/5.0) * 2.0, tabBarHeight!)
    availableButton.backgroundColor = FlatGreen()
    availableButton.setTitle("Turn On", forState: UIControlState.Normal)
    availableButton.setTitleColor(UIColor.whiteColor(), forState: UIControlState.Normal)
    availableButton.titleLabel?.font = UIFont(name: "Roboto-Bold", size: 20.0)
    self.view.addSubview(availableButton)

```

This is the button that I added to my `TabBarViewController`.

When I hide my Tab Bar:

```
tabBarController?.tabBar.hidden = true

```

I want this button to be hidden as well.

My button is the width of 2 tab bar items.

[![enter image description here](https://i.stack.imgur.com/snwWt.png)](https://i.stack.imgur.com/snwWt.png)