Я хочу настроить шрифт метки UITableViewCell, поэтому я использовал следующий код:
static NSString *CellIdentifier = @"ItemCell";
UITableViewCell *cell = nil;
if (cell == nil)
{
cell = [[[UITableViewCell alloc]
initWithStyle:UITableViewCellStyleValue1
reuseIdentifier:CellIdentifier] autorelease];
cell.accessoryType = UITableViewCellAccessoryNone;
}
if ( indexPath.section == 0 )
{
NDOrderItem *item = [self.order.items objectAtIndex:indexPath.row];
//[cell.textLabel setMinimumFontSize:10];
//[cell.textLabel setAdjustsFontSizeToFitWidth:YES];
cell.textLabel.text = item.name;
cell.detailTextLabel.text = [NSString stringWithFormat:@"%d",item.quantity];
}
, но setAdjustsFontSizeToFitWidth не регулирует шрифт textLabel.