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;
}

リストの一番下に、これを行う方法を示すFile-Based Persistence を備えた TableView があります。

于 2011-02-09T17:18:50.607 に答える