Resize CATextLayer to fit text on iOS

后端 未结 4 1804
囚心锁ツ
囚心锁ツ 2020-12-29 05:01

All my research so far seems to indicate it is not possible to do this accurately. The only two options available to me at the outset were:

a) Using a La

4条回答
  •  一生所求
    2020-12-29 05:48

    With LabelKit you don't need CATextLayer anymore. No more wrong line spacing and wider characters, all is drawn in the same way as UILabel does, while still animated.

提交回复
热议问题