목표 C는 새로운 것입니다. 테이블 뷰에서 텍스트 필드의 글꼴을 변경하려면 어떻게해야합니까? 여기에 내가 지금 가지고있는 코드는 다음과 같습니다테이블보기에서 텍스트 필드의 글꼴을 변경하는 방법
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
if (indexPath.section==0)
{
UITextField *textField= [[UITextField alloc] initWithFrame:CGRectMake(0, 0, 205, 21)];
textField.placeholder = @" ";
//textField.text = [listOfItems objectAtIndex:indexPath.row];
textField.tag = indexPath.row;
//textField.textLabel.font = [UIFont fontWithName:@"Helvetica" size:12];
//textField.placeholder = [TeamBDict objectAtIndex:textField.tag];
textField.delegate = self;
cell.accessoryView = textField;
[textField release];
}
주석 라인은 동일한 작업을 수행합니다. 'textField.textLabel.font = [UIFont fontWithName : @ "Helvetica"size : 12];' –
stackoverflow의 FAQ를 읽어주십시오. – Danra