【发布时间】:2015-09-18 18:07:51
【问题描述】:
UILabel * yourLabel = [[UILabel alloc] initWithFrame....];
yourLabel.adjustsFontSizeToFitWidth = NO;
yourLabel.lineBreakMode = UILineBreakModeTailTruncation;
yourLabel.text = @"Some long text that not fit frame, many words, many symbols";
在屏幕上我看到“一些不是...的长文本” 如何获取字符串"Some long text that not" or tail "fit frame, many words, many symbols"?
【问题讨论】:
标签: ios objective-c nsstring uilabel cgrect