1

我怎样才能实现这样的 UiTableWiev?

http://i.stack.imgur.com/8QVb4.jpg

我感谢所有给我教程的人。

像 fb 这样的桌子也可以 http://img688.imageshack.us/img688/4162/photocr.jpg

谢谢

4

1 回答 1

0

将 UITextField 添加到您的 UITableViewCell。

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 
{
    /* your standard UITableView setup code */

    UITextField *myTextField = [[UITextField alloc] initWithFrame: CGRectMake(60, 12.7, 250, 20)];
    /* any other textField code you want to add */
    [cell addSubview: customTextField];

    return cell;
}

在列表的底部,您将找到TableView with File-Based Persistence,它演示了如何执行此操作。

于 2011-02-09T17:18:50.607 回答