Thursday, July 8, 2010

Default UITableViewCell font, and how to change it

The default font is... Helvetica! If you want to change the size of the font, you can use:

cell.textLabel.font = [UIFont fontWithName:@"Helvetica" size:14.0];

You can also change the font using the above statement with a different font name.

2 comments:

  1. cell.textLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:16.0];

    cell.detailTextLabel.font = [UIFont fontWithName:@"Helvetica" size:14.0];

    ReplyDelete
  2. cell.textLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:18.5];

    ReplyDelete