UILabel is not auto-shrinking text to fit label size

后端 未结 17 620
感动是毒
感动是毒 2020-12-04 06:53

I have this strange issue, and im dealing with it for more than 8 hours now.. Depending on situation i have to calculate UILabels size dynamically,
e.g

17条回答
  •  天命终不由人
    2020-12-04 07:35

    This is how I get UILabel Autoshrink work (especially for height of label font fitting in 4s device from 6s Plus Storyboard) in iOS 9.2, Xcode 7.2 ...

    • Number of lines is 0
    • Line Breaks: Clip
    • Autoshrink: Minimum Font Scale 0.25

提交回复
热议问题