【发布时间】:2013-01-17 11:16:38
【问题描述】:
在同一个 UILabel 中是否可以有不同的字体大小或粗细?我可以在情节提要中将其作为属性标签进行,但我需要以编程方式进行。
cell.lblOne.text = [NSString stringWithFormat:
@"FontSize15:: %@, FontSize20:: %@",monkey, goat];
编辑:我看到了一些关于 NSAttributedString 的东西,但我无法让它工作。
【问题讨论】:
标签: ios uilabel nsattributedstring uifont