开发者

Is there an iPhone/iPad library for editing fields on a table view controller?

I generally do the following, but I'm hoping for a library that handles this sort of editing. I couldn't find much using Google.

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    // [..snip..]        

    if (indexPath.row == 0) {
        textViewOne = [cell addSubview:[UITextView etc]];
    }

    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NS开发者_如何学CIndexPath *)indexPath {
    if (indexPath.row == 0) {
        [textViewOne becomeFirstResponder];
        // Move UIView into view since the keyboard appears, etc.
    }
}


So far I have only found one:

  • https://github.com/elc/ELCTextFieldCell
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜