我通常会执行以下操作,但我希望有一个处理此类编辑的库。我用谷歌找不到多少。
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
// [..snip..]
if (indexPath.row == 0) {
textViewOne = [cell addSubview:[UITextView etc]];
}
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.row == 0) {
[textViewOne becomeFirstResponder];
// Move UIView into view since the keyboard appears, etc.
}
}