title: ios/xcode:How to Add Accessory View to Custom Cell
body: <p>I am following a tutorial that uses a custom cell created in Storyboard in a tableview and then adds an accessory view.  The table is loading okay.  However when I try to add an accessory view (an image), nothing appears.  Could there be some setting in storyboard that is wrong?  A problem in the code?  Or why is the accessory view not appearing</p>
  
  <p>Here is the method where the tutorial says to add the accessory view:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"Cell";
      UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      IDContactImport *contactImport = self.contacts[indexPath.row];
      IDTableViewCell *idTableCell =(IDTableViewCell *)cell;
      idTableCell.contactImport=contactImport;
      if (contactImport.imageData==nil)
      {
          idTableCell.iconView.image = [UIImage imageNamed:@"headshot.jpg"];
      }
      else{
         idTableCell.iconView.image = [UIImage imageWithData:contactImport.imageData];
      }
  //HERE IS ACCESSORY VIEW
      UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"checkbox.jpg"]];
      idTableCell.accessoryView = imageView;
  //   [self updateAccessoryForTableCell:cell atIndexPath:indexPath];
            // Configure the cell...
      if (cell == nil) {
          cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
      }
      return cell;
  }
  </code></pre>
  
  <p>Thanks for any suggestions</p>