title: data of uitableviewcell overlapping with each other on scrolling
body: <p>I have a tableview with four sections and all of the sections have two textfields and a label in different rows. I have added some text as placeholder of textfield. Initially the data appears fine but when I scroll the tableview the cell starts to have overlapped data.<br>
  <strong>My Code:</strong></p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
  static NSString *CellIdentifier = @"Cell";
  
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
  if (cell == nil) {
      cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
  }
  if(indexPath.row==0) {
      UITextField *txtName = [[UITextField alloc] initWithFrame:CGRectMake(5, 5, 300, 30)];
      txtName.placeholder = @"Full Name";
      [cell.contentView addSubview:txtName];
      [txtName release];
  }
  else if(indexPath.row==1) {
      UITextField *txtEmail = [[UITextField alloc] initWithFrame:CGRectMake(5, 5, 300, 30)];
      txtEmail.placeholder = @"Email";
      [cell.contentView addSubview:txtEmail];
      [txtEmail release];
  }
  else if(indexPath.row==2){
      cell.textLabel.text = @"Select Date of Birth";
      cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
  }
  // Configure the cell...
  
  return cell;
  </code></pre>
  
  <p>}</p>
  
  <p>thanks in advance<br>
  Pankaj</p>