UITableview scroll to top for two cell
<p>Hello In my application i make player list in uitableview for that i am add uitextfield in cell when i am add more cells then my cell that is take uitextfiel is scroll down and not visible how to do this</p>

<pre><code>#pragma mark button methods
-(void)addmethod:(id)sender{

    if(txtnewplayer.text == NULL  || [txtnewplayer.text isEqualToString:@""])
    {
        UIAlertView *myAlert = [[UIAlertView alloc] initWithTitle:nil
                                                          message:@"Please enter player name" 
                                                         delegate:self 
                                                cancelButtonTitle:@"OK" 
                                                otherButtonTitles:nil, nil];
        [myAlert show];
        [myAlert release];
    }
    else
    {

        NSInteger tid = ((UIControl *) sender).tag;
        NSIndexPath *topIndexPath;
        topIndexPath = [NSIndexPath indexPathForRow:tid inSection:0];
        [self.tableView selectRowAtIndexPath:topIndexPath animated:YES              scrollPosition:UITableViewScrollPositionTop];
     [appDelegate.PlayerLists addObject:txtnewplayer.text];
     [self.tableView reloadData]; 
    }
}
</code></pre>
