How to change font size of UITableViewCellStyleSubtitle cell on iphone 3.0

I know that you previously changed the font size of the cell as follows:

cell.font = [UIFont boldSystemFontOfSize:18];

I use a cell that is init'd with a UITableViewCellStyleSubtitle style. How to change font size of textlabel and detailtextlabel of this cell type?

+3
source share
2 answers
cell.textLabel.font = [UIFont boldSystemFontOfSize:18];

3.0 the UITableViewCell API has changed. I would suggest reading it in the docs as there are some deprecated methods

+5
source

You can have the main font settings in a variable and assign them if necessary

UIFont *cellFont = [UIFont fontWithName:@"Arial" size:10];    
cell.textLabel.font = cellFont;
+2
source

Source: https://habr.com/ru/post/1717852/


All Articles