Text box not added to all UITableViewCells
<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];

  }

    // Configure the cell...
 if(indexPath.row &lt; 8)
 {
  CGRect textRect = CGRectMake(10, 10, 300, 31);
  UITextField *myfield = [[UITextField alloc]initWithFrame:textRect];
  myfield.borderStyle = UITextBorderStyleRoundedRect;
  myfield.font = [UIFont systemFontOfSize:22.0];
  myfield.adjustsFontSizeToFitWidth = YES;
  myfield.minimumFontSize = 2.0;

  myfield.clearButtonMode = UITextFieldViewModeWhileEditing;
  myfield.keyboardType = UIKeyboardTypeDefault;
  myfield.autocorrectionType= UITextAutocorrectionTypeNo;
  myfield.autocapitalizationType=UITextAutocapitalizationTypeNone;
  myfield.returnKeyType=UIReturnKeyDone;

  [self.  addSubview:myfield];
 }


    return cell;

}
</code></pre>

<p>I wrote the above code for displaying textboxes in UITableViewCell (up to eight cells ) but the text box is displaying in the first cell only is there anything wrong in the above code? </p>
