title: iOS: Custom Table Cell 'unrecognized selector sent to instance'
body: <p>I have a tableView with a custom TableViewCell. I'm not using an .xib file to lay this out. The problem is when the table is supposed to load I get the following error: <code>Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImage nsli_superitem]: unrecognized selector sent to instance 0x91899b0'</code> I'm not sure what I'm doing wrong here. Here is the .m file for the cell.</p>
  
  <pre><code>#import "TCMExhibitListCell.h"
  
  @implementation TCMExhibitListCell
  
  - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
  {
  self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
  if (self) {
      [self setListImage:[[UIImage alloc] init]];
      [self setTitleLabel:[[UILabel alloc] init]];
  
  
      NSDictionary *names = @{@"listImage" : [self listImage]};
  
      NSString *fmt = @"H:|-0-[listImage]";
  
      NSArray *imgH = [NSLayoutConstraint constraintsWithVisualFormat:fmt
                                                              options:0
                                                              metrics:nil
                                                                views:names];
      [[self contentView] addConstraints:imgH];
  }
  return self;
  }
  
  - (void)setSelected:(BOOL)selected animated:(BOOL)animated
  {
  [super setSelected:selected animated:animated];
  
  // Configure the view for the selected state
  }
  
  @end
  </code></pre>
  
  <p>Here's where the cell gets loaded in the tableview controller</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  TCMExhibitListCell *c = [tableView dequeueReusableCellWithIdentifier:@"TCMExhibitListCell"];
  
  if (!c) {
      c = [[TCMExhibitListCell alloc] initWithStyle:UITableViewCellStyleDefault
                                 reuseIdentifier:@"TCMExhibitListCell"];
  }
  
  TCMExhibitRemote *e = [[self exhibits] objectAtIndex:[indexPath row]];
  
  NSString *imageFile = [NSString stringWithFormat:@"%@/%@.jpg",[[TCMExhibitFeedStore sharedStore] imagePathByType:@"listImage"],[e image]];
  
  [c setListImage:[UIImage imageNamed:imageFile]];
  
  return c;
  }
  </code></pre>