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

前端 未结 2 1072
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 09:56

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

Thanks

2条回答
  •  误落风尘
    2021-02-04 10:40

    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.

提交回复
热议问题