我创建了UILabel.When文本太长时,我希望使用(.. more)替换(...)我已经试过了,但我没有要求结果。如何用(...)替换(...)当文本太长
UILabel * writtenContentLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, ScreenWidth - 20 , 70)];
writtenContentLabel.numberOfLines = 0;
writtenContentLabel.text = [str stringByAppendingString:@"More"];
writtenContentLabel.lineBreakMode = NSLineBreakByTruncatingMiddle;
[self addSubview:writtenContentLabel];
我该怎么办?
......自我解释是有更多的文字。为什么要添加显式更多? – 2014-09-10 11:17:02