【发布时间】:2016-09-06 10:14:53
【问题描述】:
我想在我的UILabel 中设置属性文本。它应该是 2 行。所以我做了2个这样的属性字符串。
var myMutableTitle = NSMutableAttributedString(string: title!, attributes: [NSFontAttributeName:UIFont.init(name: fontBold, size: 15.0)!])
var mutDj=NSMutableAttributedString(string: dj!, attributes: [NSFontAttributeName:UIFont.init(name: font, size: 15.0)!])
如何附加这两个属性字符串以显示在 2 行中
Title
DJ name
请帮助我。 谢谢
【问题讨论】:
标签: ios swift nsattributedstring