title: UITableViewCell with UITextField losing the ability to select UITableView row?
body: <p>I am almost done implementing a <code>UITableViewCell</code> with a <code>UITextField</code> in it. Rather then going through <code>CGRectMake</code> and <code>UITableViewCell.contentView</code> I have implemented it the simpler way:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"Cell"];
      [cell setSelectionStyle:UITableViewCellSelectionStyleBlue];
      amountField = [[UITextField alloc] initWithFrame:CGRectMake(110, 10, 190, 30)];
      amountField.placeholder = @"Enter amount";
      amountField.keyboardType = UIKeyboardTypeDecimalPad;
      amountField.textAlignment = UITextAlignmentRight;
      amountField.clearButtonMode = UITextFieldViewModeNever; 
      [amountField setDelegate:self];
  
      [[cell textLabel] setText:@"Amount"];
      [cell addSubview:amountField];
      return cell;
  }
  </code></pre>
  
  <p>And then I also implemented the <code>didSelectRow</code> method, resigning the textField to allow showing the other fields input views.</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
      ...
      [amountField resignFirstResponder];
      ...
  }
  </code></pre>
  
  <p>This works smoothly, only thing is there are other rows in the table, when those others are selected the entire cell is selected and turns Blue, while the one with my UITextField doesn't, I mean the field is selected and I can enter text but the cell is not selected.
  I have tested it and figured out the problem is in the line:</p>
  
  <pre><code>[cell addSubview:amountField];
  </code></pre>
  
  <p>It seems that this breaks the selectable cell behavior, and even adding it to <code>[cell contentView]</code> doesn't fix this. Did I miss something?</p>