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

前端 未结 2 1073
佛祖请我去吃肉
佛祖请我去吃肉 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:32

    Use a custom UITableViewCell and assign labels using the sizes you want.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题