title: iOS 7: Custom Style Cell in Tableview: How to reference labels?
body: <p>I was following a simple iOS 7 tutorial and using the standard subtitle cell type in a tableview, and got two labels for the Title and Subtitle. The labels were: <code>textLabel</code> and <code>detailTextLabel</code></p>
  
  <p>I now want to customize the cells in my tableView, so I switched the style to Custom, and created two labels on the storyboard. I then linked IBOutlets to those labels in the interface section of my .m file. It looks something like this:</p>
  
  <pre><code>@interface MasterViewController ()
  
  @property (weak, nonatomic) IBOutlet UILabel *textLabel;
  @property (weak, nonatomic) IBOutlet UILabel *detailTextLabel;
  
  @end
  </code></pre>
  
  <p>This is what my code to render my cells looks like, it is fairly standard, I think.</p>
  
  <pre><code>-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  static NSString *CellIdentifier = @"KeyCell";
  
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  if (cell == nil) {
      cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
  }
  
  NSDictionary *key = [items objectAtIndex:indexPath.row];
  NSString *name = [key objectForKey:@"name"];
  NSString *type = [key objectForKey:@"type"];
  
  cell.textLabel.text = name;
  cell.detailTextLabel.text = [NSString stringWithFormat:@"Type : %@", type];    
  return cell;
  }
  </code></pre>
  
  <p>Am I doing this wrong?</p>