title: Perform Action When TabBarItem is Pressed
body: <p>How do I add an action to a Tab Bar Item when it is pressed. I've tried a few things, but either they aren't right, or I'm putting them in the right location. </p>
  
  <p>In my storyboard, I have a tab view controller, which is connected to a navigation controller, and that is of course connected to a ViewController. I've tried using </p>
  
  <pre><code>func tabBar(tabBar: UITabBar, didSelectItem item: UITabBarItem) {
          //This method will be called when user changes tab.
      }
  </code></pre>
  
  <p>I added <code>UITabBarDelegate</code>, and it sill doesn't work? Any ideas? Thanks!</p>