2011-02-09 66 views

回答

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

截至the list底部,你會發現的TableView與基於文件的持久性它演示瞭如何做到這一點。