UILabel min font size shadow issue

99封情书 提交于 2019-12-10 12:47:20

问题


I have an issue when setting minimum font size on my UILabels. As you can see the shadow isn't following along with the font size. It's supposed to be just 1 px heigh.

My label:

My settings:


回答1:


Turn off "Tighten Letter Spacing".

There seems to be a bug with shadows, auto shrinking, and auto tightening.




回答2:


Set the shadow.offset programmatically based on font size.




回答3:


You have set the Value 12 Below the Minimum Font Size you can't set this value its Too large pass it like 0.5 or 0.8 something Like that.

Secondly your Vertical Shadow Offset is 1 so there is no chance to take that much of shadow It may be possible that you have passed shadow through Code please check it first.

When you check it in xib File while changing at that time if its not change that just reopen the Window than It'll Work.

Hope this will Help.



来源:https://stackoverflow.com/questions/16164466/uilabel-min-font-size-shadow-issue

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