(iPhone) How to change row font size in tableview

Hi, I am now working on changing the font size of a string. There are no such settings in the inspector. And I don't know which delegate method to override. thank you for your help:)

+6
fonts iphone tableview
source share
3 answers

Try something similar in the cellForRowAtIndexPath method:

//Configure the cell... cell.textLabel.font = [UIFont systemFontOfSize:14]; //Change this value to adjust size cell.textLabel.numberOfLines = 2; //Change this value to show more or less lines. cell.textLabel.text = @"This is my text"; 
+16
source share
 //font size cell.textLabel.font = [UIFont systemFontOfSize:14]; 
+1
source share

I'm not sure if this answers your question, but inside your delegate cellForRowAtIndexPath you can set cell.textLabelfont to UIFont .

0
source share

All Articles