title: Reusing UITableViewCell in Multiple Sections
body: <p>In following code the <strong>UILabel</strong> text gets repeated for other rows. I know its a problem with table reusability, but cant figure out how to solve it. Everything looks fine even the counts that are being returned. </p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath     *)indexPath
  {
  UITableViewCell *cell;
  
  //Doc Name
  if(indexPath.section == 0)
  {
      cell=[tableView dequeueReusableCellWithIdentifier:@"cell"];
  
      if(cell==nil)
      {
          cell= [[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"]autorelease];
  
      }
  
      cell.textLabel.text= docName;
      cell.textLabel.font=[UIFont fontWithName:@"Times New Roman" size:17.f];
  
      UILabel *name = [[UILabel alloc]init];
      name.backgroundColor = [UIColor clearColor];
      name.textAlignment = NSTextAlignmentCenter;
      name.frame = CGRectMake(600,2.0f,250,50);
      name.text = @"11:12:01";
      [cell addSubview:name];
  
  }
  
  //Joint Work
  if(indexPath.section == 1)
  {
      cell=[tableView dequeueReusableCellWithIdentifier:@"cell"];
  
      if(cell==nil)
      {
          cell= [[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"]autorelease];
  
      }
  
      cell.textLabel.text= [jointWrkNames objectAtIndex:indexPath.row];
      cell.textLabel.font=[UIFont fontWithName:@"Times New Roman" size:17.f];
  }
  
  //Detailing
  if(indexPath.section == 2)
  {
      cell=[tableView dequeueReusableCellWithIdentifier:@"cell"];
  
      if(cell==nil)
      {
          cell= [[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"cell"]autorelease];
  
      }
  
      cell.textLabel.text= @"Detailing";
      cell.textLabel.font=[UIFont fontWithName:@"Times New Roman" size:17.f];
  }
  }
  </code></pre>