title: How should I implement a custom table view cell?
body: <p>I am trying to change a cell in a tableview from generic to custom and have created a new tableview cell class.  However, I cannot get the cell to recognize the new custom cell.  Instead, it is still displaying the generic cell although I've changed the setting in storyboard to custom in the identify inspector and also changed the class for the tableview cell to the new custom one. I have also wired the elements in the cell in storyboard to the new custom class.</p>
  <p>My understanding is the tableview VC knows which class to use from the <code>tableView cellForRowAtIndexPath</code> method and I have changed that too with the code below.  The project compiles but continues to show old generic cell. Can anyone see error or suggest what else to do?</p>
  <pre><code>#import &quot;customCell.h&quot;
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
    customCell *cell = (customCell *)[self.tableView dequeueReusableCellWithIdentifier:@&quot;Cell&quot;];
      Items *item = [self.fetchedResultsController objectAtIndexPath:indexPath];
      
      return cell;
  }
  </code></pre>
  <p>Thanks in advance for any suggestions.</p>
  <p><strong>Edit:</strong></p>
  <p>A custom cell is created in the storyboard on top of tableview by dragging uielements.  Maybe this is an issue:</p>
  <p><a href="https://i.stack.imgur.com/v0sQu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v0sQu.png" alt="enter image description here" /></a></p>
  <p>Style of cell is set to Custom:</p>
  <p><a href="https://i.stack.imgur.com/5BRUK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5BRUK.png" alt="enter image description here" /></a></p>