Upvote:2

static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) 
{
   NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"VehicleSearchCellDual" owner:self options:nil];
   for( NSObject* nibItem in nib )
   {
        if( [nibItem isKindOfClass:[UITableViewCell class]] )
        {
            cell = (UITableViewCell*)nibItem;
            break;
        }
    }
}
cell.selectionStyle = UITableViewCellSelectionStyleNone;
if(indexPath.section == 0)
{
    UILabel* titleLabel;
    titleLabel = (UILabel *)[cell viewWithTag:1];
    
    UILabel* rightMostLabel;
    rightMostLabel = (UILabel *)[cell viewWithTag:3];

    if(indexPath.row == 0)
    {
        [titleLabel setText:@"Manufacture"];
        [rightMostLabel setText:manufactureSearchObjectString];
    }
    else if(indexPath.row == 1)
    {
        [titleLabel setText:@"Model"];
        [rightMostLabel setText:@"empty"];
        UILabel* leftMostLabel;
        leftMostLabel = (UILabel *)[cell viewWithTag:2];
        leftMostLabel.text = @"empty"; 
    }
    else if(indexPath.row == 2)
    {
        [titleLabel setText:@"Year"];
        [rightMostLabel setText:@"empty"];
    }
    else if(indexPath.row == 3)
    {
        [titleLabel setText:@"Key type"];
        [rightMostLabel setText:keyTypeSearchObjectString];
    }
}
else if(indexPath.section == 1)
{
    if(indexPath.row == 0)
    {
        [[cell viewWithTag:1] setHidden:YES];
        [[cell viewWithTag:2] setHidden:YES];
        [[cell viewWithTag:3] setHidden:YES];
        [[cell viewWithTag:4] setHidden:NO];
    }
}
return cell;

Credit Goes to: stackoverflow.com

Related question with same questions but different answers