title: How to properly Init a custom UITableviewCell?
body: <p>I am using the following 2 methods to return a custom cell:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
      NSString *key = [self keyForIndexPath:indexPath];
      UITableViewCell *cell;
  
      if ([key isEqualToString:DoneButtonCellKey]) {
          cell = [self [self doneButtonCellForIndexPath:indexPath];
          return cell;
      } else {
          //code to return default cell...
      }
  } 
  </code></pre>
  
  <p>Then:</p>
  
  <pre><code>- (DoneButtonCell *)doneButtonCellForIndexPath: (NSIndexPath *)indexPath {
  
      DoneButtonCell *cell = [self.tableView dequeueReusableCellWithIdentifier:DoneButtonCellIdentifier forIndexPath:indexPath];
      return cell;
  
  }
  </code></pre>
  
  <p>What is the correct init method to use with the cell here so I can change some properties of the cell when it is initialized?</p>
  
  <p>EDIT: I found the problem, as the init/awakeFromNib methods were not being called for me. I tracked down the error and it was that I had not changed the "Custom Class" from UITableViewCell to my custom class. Now awakeFromNib AND initWithCoder work as described below.</p>