title: Custom UITableViewCell: SIGABRT on "loadNibNamed:"
body: <p>I'm trying to get the hang of doing a subclass of UITableViewCell with a custom nib file. </p>
  
  <p>The subclass's name is MyCustomCell. The .xib file just has a UITableViewCell with a single UILabel "cellTitle" and I've connected it to an outlet in the UITableViewCell subclass. </p>
  
  <p>In the class in MyCustomCell that returns the cell, I get a SIGABRT error on the following line:</p>
  
  <pre><code>NSArray *nibContents = [[NSBundle mainBundle] loadNibNamed:@"View" owner:self options:NULL];
  </code></pre>
  
  <p>Here's the implementation of cellForRowAtIndexPath:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  
  {
  static NSString *kCustomCellID = @"MyCellID";
  
  myCustomCell *cell = (myCustomCell *)[tableView dequeueReusableCellWithIdentifier:kCustomCellID];
  if (cell == nil)
  {
      cell = (myCustomCell *)[myCustomCell cellFromNibNamed:@"myCustomCell"];
  }
  //TODO: Configure Cell
  return cell;
  }
  </code></pre>
  
  <p>Here's the implementation for myCustomCell cellFromNibNamed:</p>
  
  <pre><code>+ (myCustomCell *)cellFromNibNamed:(NSString *)nibName 
  {
  NSArray *nibContents = [[NSBundle mainBundle] loadNibNamed:@"View" owner:self options:NULL];
  NSEnumerator *nibEnumerator = [nibContents objectEnumerator];
  myCustomCell *customCell = nil;
  NSObject* nibItem = nil;
  while ((nibItem = [nibEnumerator nextObject]) != nil) 
      {
      if ([nibItem isKindOfClass:[myCustomCell class]]) 
          {
          customCell = (myCustomCell *)nibItem;
          break; // we have a winner
          }
      }
  return customCell;
  }
  </code></pre>
  
  <p>I get the SIGABRT error in the line</p>
  
  <pre><code>    NSArray *nibContents = [[NSBundle mainBundle] loadNibNamed:@"View" owner:self options:NULL];
  </code></pre>
  
  <p>in the above method. What am I doing wrong here?</p>