如何更改UITableView单元格标题的字体大小? [英] How can I change the font size of my UITableView cell title?

查看:115
本文介绍了如何更改UITableView单元格标题的字体大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在XCode中更改UITableView单元格标题的字体大小?

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

谢谢

推荐答案

如果您以编程方式执行此操作,则可以在 tableView中设置属性 cell.textLabel.font : cellForRowAtIndexPath 方法。

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];

将您的字体大小调整为12.0分。

Which would resize your font to size 12.0 pts.

这篇关于如何更改UITableView单元格标题的字体大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆