title: Swift Remove Tab Bar Programmatically
body: <p>The main navigation for my iOS 8 app is a tab bar with 3 tabs. I also have a login screen that is a UIViewController that should not have tabs at the bottom. I only ever access the login screen programmatically from the normal flow if I detect that a user is either not logged in, or has chosen to log out. I'm not sure how to remove the tabs from the screen when I show the login screen with the following code:</p>
  
  <pre><code>let loginView = self.storyboard?.instantiateViewControllerWithIdentifer("Login") as UIViewController
  self.presentViewController(loginView, animate: true, completion: nil)
  </code></pre>
  
  <p>I have tried setting the <code>tabBar.hidden</code> property to <code>true</code> with no result. I have also tried modifying the storyboard to set "Bottom Bar" to "None" and have checked "Hide Bottom Bar on Push".</p>