Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the font size of my UITableView cell title?

How can I change the font size of my UITableView cell title in XCode?

Thanks

like image 327
pixelbitlabs Avatar asked Oct 31 '11 17:10

pixelbitlabs


1 Answers

If you are doing this programatically, then you can set the property cell.textLabel.font in your tableView:cellForRowAtIndexPath method.

Specifically, to change the size, you would write:

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

Which would resize your font to size 12.0 pts.

like image 109
Jonathan Ellis Avatar answered Oct 20 '22 06:10

Jonathan Ellis