私は現在、1つのアプリケーションで作業しており、テーブルビューセルにラベルが必要です。ユーザーがそのラベルをタップすると、キーボードにその方法が表示され、誰かが教えてくれます。
ありがとう
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:
(NSIndexPath*)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView
dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc]
initWithStyle:UITableViewCellStyleValue1
reuseIdentifier:CellIdentifier]
autorelease];
}
cell.textLabel.text=[Players objectAtIndex:indexPath.row];
playername=[[UITextField alloc]initWithFrame:CGRectMake(10, 5, 100, 30)];
playername.placeholder=@"Player";
playername.delegate=self;
playername.keyboardType=UIKeyboardTypeDefault;
playername.returnKeyType=UIReturnKeyDone;
[cell.contentView addSubview:playername];
cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;
return cell;
}