title: how to add more 2 or more labels in a row of grouped table view
body: <p>How can I add more than 2 labels into a row of a grouped table view?</p>
  
  <p>I used the following code but it's displaying only the  last label</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView 
           cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *SimpleTableIdentifier = @"SimpleTableIdentifier";
  
      NSArray *listData =[self.tableContents objectForKey:[self.sortedKeys objectAtIndex:[indexPath section]]];
  
      UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:SimpleTableIdentifier];
  
  
      if (cell == nil)
      {
          cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
                                         reuseIdentifier:SimpleTableIdentifier] autorelease];
  
      }
  
      NSUInteger row = [indexPath row];
      cell.textLabel.text = [listData objectAtIndex:row];
  
  
      switch(indexPath.section)
      {
  
          case 0:
              switch (indexPath.row) 
          {
              case 0:
              {
  
                  lbl = [[[UILabel alloc] initWithFrame:CGRectMake(0,0,50, 10)] autorelease];
                  cell.accessoryView = lbl;
                  cell.textLabel.text=@"Company:"; 
                  lbl.tag = indexPath.row;
  
  
                  UILabel* lbl1 = [[[UILabel alloc] initWithFrame:CGRectMake(0,12,50, 10)] autorelease];
                  cell.accessoryView = lbl1;
                  cell.textLabel.text=@"Account:";
                  lbl1.tag = indexPath.row;
  
  
                  UILabel* lbl2 = [[[UILabel alloc] initWithFrame:CGRectMake(0,24,50, 10)] autorelease];
                  cell.accessoryView = lbl2;
                  cell.textLabel.text=@"Other ID:";
                  lbl2.tag = indexPath.row;
              } 
                  break;
              case 1: 
              {  /*
                  lbl = [[[UILabel alloc] initWithFrame:CGRectMake(0,0,50, 10)] autorelease];
                  cell.accessoryView = lbl;
                  cell.textLabel.text=@"Add New Contact:";  
                  */
              } 
                  break;
  
  }
  }
  </code></pre>
  
  <p>To increase the row height, I am using following code:</p>
  
  <pre><code>- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      switch(indexPath.section)
      {
          case 0:
          {
              switch(indexPath.row)
              {
                  case 0:
                  {
                      return 100;
                  }
                      break;
  
                  case 1:
                  {
                      return 40;
                  }
                      break;
  
                  case 2:
                  {
                      return 40;
                  }
                      break;
  
                  case 3:
                  {
                      return 40;
                  }
                      break;
  
                  default:
                  {
                      return 15;
                  }
  
              }
          }
              break;
  
  }
  }}
  </code></pre>