title: How to refresh a tableView on click tabBar item Swift?
body: <p>I have a tableView into a viewController on tab Bar. When I click into tabBar item the tableView isn't refreshing. But I have the viewWillAppear function:</p>
  
  <pre><code> override func viewWillAppear(animated: Bool) {
      dispatch_async(dispatch_get_main_queue(), { () -&gt; Void in
          self.tableView.reloadData()
      })
  }
  </code></pre>
  
  <p>I'm trying call this function with tab bar delegate, but not works:</p>
  
  <pre><code> func tabBar(tabBar: UITabBar, didSelectItem item: UITabBarItem) {
       dispatch_async(dispatch_get_main_queue(), { () -&gt; Void in
          self.tableView.reloadData()
      })
   }
  </code></pre>
  
  <p>Why not reload?</p>
  
  <p>Thanks!</p>