title: xcode search bar crash try to enter something
body: <p><img src="https://i.stack.imgur.com/MqY6S.png" alt="enter image description here" /></p>
  <pre><code>#pragma Search Methods
  
  -(void)filterContentForSearchText:(NSString *)searchText scope:(NSString *)scope
  {
      NSPredicate *predicate = [NSPredicate predicateWithFormat:@&quot;SELF beginswith[c] %@&quot;,searchText];
      _AramaSonuclari = [_TarifAdi filteredArrayUsingPredicate:predicate];
      
  }
  
  -(BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString
  {
      [self filterContentForSearchText:searchString scope:[[self.searchDisplayController.searchBar scopeButtonTitles] objectAtIndex:[self.searchDisplayController.searchBar selectedScopeButtonIndex]]];
      return YES;
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
      
      // Return the number of rows in the section.
      if (tableView == self.searchDisplayController.searchResultsTableView)
      {
          return [_AramaSonuclari count];
      }
      else
      {
          return _TarifAdi.count;
      }
      
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      
      TableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@&quot;TableViewCell&quot; forIndexPath:indexPath];
      
      cell.tag = indexPath.row;
      //cell.imageView.image = nil;
      
      if (tableView == self.searchDisplayController.searchResultsTableView)
      {
          cell.TitleLabel.text = _AramaSonuclari[indexPath.row];
      }
      else
      {
          cell.TitleLabel.text = _TarifAdi[indexPath.row];
      }
  
      return cell;
   }
  </code></pre>
  <p>Our problem, when we try to enter any character in the search bar, app crashes, we did debug our code work without error. We think, our problem is on storyboard connection; also I added an image. When we delete searchBar referencing outlets, we can type something but of course the code is not working without connection.</p>
  <p>Error Log:</p>
  <blockquote>
  <p>2014-07-14 13:29:08.577 SevgiLezzeti[3839:60b] *** Assertion failure in -[UISearchResultsTableView dequeueReusableCellWithIdentifier:forIndexPath:], /SourceCache/UIKit_Sim/UIKit-2935.137/UITableView.m:5439</p>
  <p>2014-07-14 13:29:08.582 SevgiLezzeti[3839:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier TableViewCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'</p>
  </blockquote>