title: Tap on a UITableView Index (A...Z) when a UISearchController's searchBar is active
body: <p>I have a UITableView coupled to a UISearchController.</p>
  
  <p>The connection is made by putting the seach bar as the table view header like this:</p>
  
  <pre><code>tableView.tableHeaderView = searchController.searchBar
  </code></pre>
  
  <p>I do the link between the index bar on the side and the sections header like this:</p>
  
  <pre><code>func tableView(tableView: UITableView, sectionForSectionIndexTitle title: String, atIndex index: Int) -&gt; Int {
      if searchPredicate != nil {
          for (index, section) in enumerate(filteredSections) {
              if section.name == title {
                  return index
              }
          }
          return 0
      } else {
          return self.fetchedResultsController.sectionForSectionIndexTitle(title, atIndex: index)
      }
  }
  </code></pre>
  
  <p>This works fine.</p>
  
  <p>When the search bar is active, it stays visible all the time when scrolling (which is the intended behaviour).</p>
  
  <p>My problem is when I tap on one of the index letter on in the index bar on the side. It scrolls to the section header, but as the search bar is always visible while being active, we can't see the section header title and part of the first row of the section, we have to scroll manually.</p>
  
  <p>Like on this snapshot, I tapped on the index letter <code>L</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/u1fJr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u1fJr.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to fix it (any hack accepted)?</p>