Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 208
Parag Deshpande Avatar asked Mar 16 '11 10:03

Parag Deshpande


2 Answers

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

UIFont reference

like image 168
Praveen S Avatar answered Oct 09 '22 23:10

Praveen S


Change font size and font family.

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

change font size

cell.textLabel.font=[UIFont systemFontOfSize:22.0]; 
like image 41
saturngod Avatar answered Oct 09 '22 21:10

saturngod