How to Change Font Size of Cell in uitableview

46,583

Solution 1

UIFont *myFont = [ UIFont fontWithName: @"Arial" size: 18.0 ];
cell.textLabel.font  = myFont;

UIFont reference

Solution 2

Change font size and font family.

cell.textLabel.font=[UIFont fontWithName:@"Arial" size:16];

change font size

cell.textLabel.font=[UIFont systemFontOfSize:22.0];

Solution 3

Another simple one:

cell.textLabel.font = [cell.textLabel.font fontWithSize:19];

this way you change only the font size mantaining all the font format.

Solution 4

Try this

cell.textLabel.font=[UIFont systemFontSize:15.0f];

All the best.

Solution 5

You can try

cell.textLabel.font = [UIFont boldSystemFontOfSize:yourSize];

or

cell.textLabel.font = [UIFont systemFontOfSize:yourSize];
Share:
46,583
Parag Deshpande
Author by

Parag Deshpande

Updated on May 15, 2020

Comments

  • Parag Deshpande
    Parag Deshpande about 4 years

    I tried this, but it is not working.

    cell.textLabel.adjustsFontSizeToFitWidth=NO;
    cell.textLabel.minimumFontSize=6;
    

    I need a code snippet.