Drop cap with NSAttributedString

前端 未结 5 1663
误落风尘
误落风尘 2020-12-04 20:02

I would like to do a drop cap first character in a UILabel using the attributedText NSAttributedString property only. Like this:

<
5条回答
  •  情书的邮戳
    2020-12-04 20:53

    Not a perfect solution, but you should give DTCoreText a try and render your normal NSString as an formatted HTML. Within HTML it is possible to "Drop cap" a letter.

提交回复
热议问题