YYText icon indicating copy to clipboard operation
YYText copied to clipboard

设置truncationToken,偶现其出现的行数不准确。

Open xuuhan opened this issue 4 years ago • 2 comments

我在项目中设置了numberOfLines = 5,然后设置truncationToken。 大多数时候超过5行的文本都是在第5行的尾部替换了文字。 但偶现超过5行的文本在第4行的尾部就替换了文字,并且一共只显示4行。 触发条件无规则无换行符。 不明白为什么,请教作者大大。

xuuhan avatar Dec 29 '20 14:12 xuuhan

有新进展么

liuzhuoming avatar Sep 28 '21 05:09 liuzhuoming

我在另一个库的基础上改了改实现的这个功能 https://github.com/Spr1ngHall/XLHLookMoreLabel

xuuhan avatar Sep 28 '21 11:09 xuuhan