title: How can I determine if a UISearchDisplayController's searchResultsTableView is visible?
body: <p>I have a UISearchDisplayController that is in the headerview for my UITableView. I want to know when the UISearchDisplayController's searchResultsTableView is shown so I can do some other operation:</p>
  
  <pre><code>if(self.tableView == self.searchDisplayController.searchResultsTableView)
  </code></pre>
  
  <p>returns true all the time even when the searchResultsTableView is shown. How can I figure this out?</p>