Search code examples
iphonecocoa-touchuitableviewiphone-sdk-3.0

How to Change Font Size of Cell in uitableview


I tried this, but it is not working.

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

I need a code snippet.


Solution

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

    UIFont reference