2
我正在嘗試向表格單元格添加文本字段。任何人都可以請更正此代碼向表格單元格添加文本字段
aCell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"UserIDCell"] autorelease];
aCell.textLabel.text = @"User Name";
aCell.selectionStyle = UITableViewCellSelectionStyleNone;
UITextField *user_ID_TextField1 = [[UITextField alloc] initWithFrame:CGRectZero];
aCell.accessoryView = user_ID_TextField1;
[user_ID_TextField1 release];
感謝
感謝它的工作。 – pa12