【发布时间】:2012-08-19 02:35:36
【问题描述】:
我有一个像这样的NSString
NSString *string = @"textTextTextTextText<br>textTextTextText<br>TextTextText"
我想将此 NSString 设置为我的 UICell 的文本,并在字符串上找到的每个
标记上都有一个新行。我怎么能这样做?
我试过了,没有成功:
cell.textLabel.text = [[text componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]] componentsJoinedByString:@"<br>"];
【问题讨论】:
标签: ios nsstring line-breaks