UILabel Text with Multiple Font Colors

前端 未结 8 656
一向
一向 2020-12-19 18:48

Is there a way to have the textColor property of a UILabel be two different UIColors? Basically I\'m trying to make the first characte

8条回答
  •  再見小時候
    2020-12-19 19:25

    No, that's not possible - you need to draw on your own or compose using several labels.

    If you can accept 3.2 compatibility, you might have a look at NSAttributedString.

提交回复
热议问题