title: UISearchBar cancel button not reloading original array
body: <p>I have a TableView based application where I have incorporated a UISearchBarDelegate.  The application works as intended.  The tableview is displayed with all data, along with the UISearchBar.  When text is entered into the search field, the list is narrowed down to match that of the text entered.  </p>
  
  <p>The problem that I am experiencing is that when I click the cancel button, the keyboard disappears as it should but the original array is not returned....It still shows the searched item(s) as they appear.</p>
  
  <p>In my searchBarCancelButtonClicked section, I have the following code:</p>
  
  <pre><code>- (void)searchBarCancelButtonClicked:(UISearchBar *)SearchBar 
  {
      SearchBar.text = nil;
  
      [SearchBar resignFirstResponder];
  
      [tableView reloadData];
  }
  </code></pre>
  
  <p>I would assume that the <code>[tableView reloadData]</code> section should reload the data from the original array when the cancel button is clicked but it does not do that.  Any ideas as to what I might be doing wrong here?</p>
  
  <p>Also, here is my cellForRowAtIndexPath.  When comparing to other examples, it seems like I am doing things correctly....With nothing obvious sticking out at me.</p>
  
  <pre><code>-(UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath     *)indexPath {
  
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyIdentifier"];
  if (cell == nil) {
      cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"MyIndentifier"];
      cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
  
  }
  
  
  StateDetail *cd;
  if(isFiltered)
      cd = [self.searchStates objectAtIndex:indexPath.row];
  else 
      cd = [self.listOfStates objectAtIndex:indexPath.row];
  
  cell.textLabel.text = cd.stateName;
  
  
  return cell;
  }
  </code></pre>
  
  <p>Thank you in advance!</p>