UILabel Dynamic Font size keep breaking

亡梦爱人 提交于 2019-12-06 15:54:57

There is minimum font shrink property is available. it shrinks the font size as minimum ratio with the current point size. If the content become more then the ratio of fonts then it will defiantly shows the truncation dots(...) at the end.

For example :

Here I am setting up the property with minimum font scale is 0.4.

And here you can see different texts applied with the same property.

In first and second label will adjust the font size because content is less and it adjust as per minimum font scale ratio. but in 3rd the minimum font ratio and the content of the label is does not matched then it will show the dots(...) with truncation.

For this issue you should know that how mach content should be shown on that label or for batter use you can use multiline label.

Hope you will get help from the answer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!