是否有用于在表格视图控制器上编辑字段的iPhone / iPad库?

时间:2010-09-14 21:57:24

标签: forms ios uitableview editing

我通常会执行以下操作,但我希望有一个处理此类编辑的库。我用谷歌找不到多少。

- (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.
    }
}

1 个答案:

答案 0 :(得分:0)

到目前为止,我只发现了一个: