title: numberOfRowsInSection: not called on reloadData
body: <p>I have a <code>UITableView</code> that uses an array to list data. This works fine.
  I also have an <code>UISearchBar</code> for searching in that <code>tableview</code>. When data is matched in the tableviews array those rows are added to another mutable array, and <code>cellForRowAtIndexPath:</code> displays data from that mutable array instead.</p>
  
  <p>But <code>numberOfRowsInSection:</code> is never called when I call reloadData. Therefore the <code>tableview</code> crashes when scrolling, because it's trying to get data from the mutable array, but for rows that are in the original array (which has more items)</p>
  
  <p>I've debugged for quite a while now, but can not for the love of god find the reasons for this. Datasource and Delegate are hooked up in the <code>tableview</code>, because it can show the data from the original array.</p>
  
  <pre class="lang-c prettyprint-override"><code>    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
      {
           NSLog(@"isSearching: %d", isSearching);
           // Return the number of rows in the section.
           if(!isSearching)
              return [originalArray count];
  
           NSLog(@"isSearching - Return searchCopyListOfItems");
           return [searchCopyListOfItems count];
      }
  
      - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
      {
           static NSString *CellIdentifier = @"Cell";
           UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
           if(cell == nil) {
               cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
           }
  
           if(!searching)
               cell.textLabel.text = [originalArray objectAtIndex:indexPath.row];
           else
               cell.textLabel.text = [searchCopyListOfItems objectAtIndex:indexPath.row];
  
           return cell;
      }
  </code></pre>