YYTextLayout automatic ellipsis

YYKit demo, micro-blog demo, a forward, point praise and comments, if the number of forwarding is not fixed, such as:

YYTextLayout automatic ellipsis
34DA02AA-D645-4239-B3D7-377BD713405B.png

This time if you want to test the effect of ellipsis, many times, I finally found in this position can add a line of code to achieve an effect, such as:

YYTextLayout automatic ellipsis
2025DF61-3385-4DBD-A758-3A4590BED557.png

I just started around attributeString has been set up, but later found is not how I set, and then set the YYLabel attribute set are set up, are not, then try to set up the YYTextContainer container, did not expect success