我怎样才能打破OHAttributedLabel

时间:2012-06-19 11:31:04

标签: iphone objective-c ios cocoa-touch nsattributedstring

我如何换行OHAttributedLabel?我的下面的代码不起作用。

OHAttributedLabel *lbl = [[OHAttributedLabel alloc] init];
lbl.lineBreakMode = UILineBreakModeTailTruncation;

1 个答案:

答案 0 :(得分:1)

将标准换行符(\ n,\ r \ n,\ r \ n,Unicode段落分隔符)附加到attributedText属性应该可以解决问题。

相关问题