你能解释一下为什么 NSLineBreakByWordWrapping 有时不起作用吗?
这是表视图
NSMutableParagraphStyle *paragrahStyle = [[NSMutableParagraphStyle alloc] init];
[paragrahStyle setLineSpacing:4];
paragrahStyle.lineBreakMode = NSLineBreakByWordWrapping; //Char
[[cell titleLabel] setAttributedText:[[NSAttributedString alloc] initWithString:((Post *)posts[indexPath.section])->title attributes:@{NSParagraphStyleAttributeName : paragrahStyle, NSFontAttributeName : [UIFont fontWithName:@"Roboto-Condensed" size:24.0f]}]];