I have a a book names shown in a table view. The table view cells has 2 lines cell.textLabel.numberOfLines = 2
Now I want to t开发者_开发技巧runcate the tail of the second line. Is this possible to achieve programmatically?
label.lineBreakMode = UILineBreakModeTailTruncation;
However, truncate tail is the default setting for UILabel objects.
For making this clear, please refer to the UILabel class reference
精彩评论