开发者

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

开发者 https://www.devze.com 2023-01-16 08:09 出处:网络
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.

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

精彩评论

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