title: How to add multiple button and label in each row on UITableview iOS
body: <p>I'm a newbie. I want to create a UITableview which has 2 button and 3 label in each row. And i want to when load tableview, it'll check state of each button, then set image for them. After user click on other button in another tabbar, uitableview will be reloaded and set image as stats of  them. How can i do that? Thanks in advance.</p>
  
  <p>I tried below code but image of marketButton is overlap but Price label works fine, not overlap:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
      static NSString *CellIdentifier = @"Cell";
      UITableViewCell *cell = (UITableViewCell *)[_tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if (nil == cell) {
          cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
  
  
          UILabel *pricelabel = [[UILabel alloc] initWithFrame:CGRectMake(90, 0, 80, 30)];
          pricelabel.backgroundColor = [UIColor clearColor];
          pricelabel.font = [UIFont fontWithName:@"Helvetica" size:16];
          pricelabel.font = [UIFont boldSystemFontOfSize:16];
          pricelabel.textColor = [UIColor darkGrayColor];
          pricelabel.tag = 3000;
          //pricelabel.hidden = YES;
  
          pricelabel.textAlignment = NSTextAlignmentRight;
          [cell.contentView addSubview: pricelabel];
          [pricelabel release];
  
      }
  
      UIButton *marketButton = [UIButton buttonWithType:UIButtonTypeCustom];
       [market addTarget:self action:@selector(marketPressed:) forControlEvents:UIControlEventTouchDown];
  [marketButton setTag:indexPath.row];
  
      if([sellingArray count]&gt;0)
      {
      NSLog(@"sellingArray %@",sellingArray);
      if([[sellingArray objectAtIndex:indexPath.row] isEqualToString:@"0"]) // nothing
      {
  
          [marketButton setSelected:NO];
          [marketButton setImage:[UIImage imageNamed:@"Marketplace.png"] forState:UIControlStateNormal];
          marketButton.enabled = YES;
  
      }
      else if([[sellingArray objectAtIndex:indexPath.row] isEqualToString:@"2"])  // marketplace
      {
          [marketButton setSelected:YES];
          [marketButton setImage:[UIImage imageNamed:@"MarketplaceSelect.png"] forState:UIControlStateNormal];
          marketButton.enabled = YES;
  
      }
      }
  
      if([priceNewArray count]&gt; 0)
      {
          UILabel *pricelbl = (UILabel*)[cell.contentView viewWithTag:3000];
          pricelbl.text =[NSString stringWithFormat:@"$%@",[priceNewArray objectAtIndex:indexPath.row]];
          if ([sellingArray count]&gt;0) {
              if([[sellingArray objectAtIndex:indexPath.row] isEqualToString:@"2"]){
  
                  pricelbl.hidden = NO;
              }
              else if([[sellingArray objectAtIndex:indexPath.row] isEqualToString:@"0"]){
                  pricelbl.hidden = YES;
  
              }
  
          }
      }
  
      return cell;
  }
  </code></pre>