Autoshrink on a UILabel with multiple lines

前端 未结 17 2052
醉梦人生
醉梦人生 2020-11-28 21:31

Is it possible to use the autoshrink property in conjunction on multiple lines on a UILabel? for example, the large text size possible on 2 available lines.

17条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 21:57

    I've written a small category on UILabel based on "The Dude's" answer above to achieve this functionality.

    https://gist.github.com/ayushn21/d87b835b2efc756e859f

提交回复
热议问题