Custom textfield in uitableviewcontroller
<pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    //static NSString *CellIdentifier = @"Cell";
    NSString *CellIdentifier = [NSStringstringWithFormat:@"S%1dR%1d",indexPath.section,indexPath.row];
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

    if (cell == nil)
    {
        cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];     
    }

    if (indexPath.section==0)
    {
          if (indexPath.row==0)
         {
             UILabel *Name=[[UILabel alloc]initWithFrame:CGRectMake(10, 10, 100, 20)];
             [Name setText:@"First Name "];
             Name.tag=kViewTag;
             [cell.contentView  addSubview:Name];

             //cell.textLabel.text=@"First Name";
             UITextField *textName=[[UITextField alloc]initWithFrame:CGRectMake(140, 10, 150, 30)];
             textName.placeholder=@"Enter First Name";
             textName.tag=kViewTag; 
             [textName setBorderStyle:UITextBorderStyleRoundedRect];
             //textName.tag=0;
             textName.clearButtonMode = UITextFieldViewModeWhileEditing;
             textName.keyboardType=UIKeyboardTypeDefault;
             textName.returnKeyType=UIReturnKeyDone;
             textName.delegate=self;
             textName.clearsOnBeginEditing=YES;
             [cell.contentView addSubview:textName];    
         }
    }
    return cell;
}
</code></pre>

<p>in this code there are some more textfields also.</p>

<p>my problem is that when i am scrolling my table value in the textfield removes automatically..
can anyone help me???</p>
