I'm trying to make a multi-line label with 2 lines truncate the last line only. But it seems that, if I choose the Layout
of that label as Truncates
, my multi-line label becomes one-line.
Here's what I want (I manually typed "..." for demonstration purposes):
Here's what I have when I set my label as Truncates
in IB (as you can see it still has 2 lines but acts as if it was only 1):
Is this supposed to happen? If not, how can I achieve the truncate style of the first image?
Thanks!
看起来你必须有Uses Single Line Mode
已选中,应取消选中。另外,根据Layout
is the Control
节,可以设置指定要截断标签的哪一部分以及是否剪辑、换行以及截断哪一部分(头、中、尾)。
[ 1 https://i.stack.imgur.com/PYJj1.jpg ]
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)