'No Results' on Entering First Letter In SearchBar
<p>I'm making a webservice call, so I have UISearchBar and DisplaySearchController.</p>

<p>Everything works pretty sweet except for the first time I enter a letter in the SearchBar, I get 'No Results' in the tableView, then I get the result for the first letter. </p>

<p>Some code I'm using:</p>

<pre><code>- (BOOL)searchDisplayController:(UISearchDisplayController *)controller   shouldReloadTableForSearchString:(NSString *)searchString
{
   return ([self.tableData count] &gt; 0 );
}

-(void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText
[self.tableData removeAllObjects];
if ([searchText length] &gt; 0 )
{
    [self performSelectorInBackground:@selector(callWebService:) withObject:searchText];
}
- (void) callWebService:(NSString *) textToComplete
{
    //...
    //call web service and fille tableData
    //...

    if ( [self.tableData count ] &gt; 0 )
        [self.searchDisplayController.searchResultsTableView    performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:NO];
</code></pre>
