How to set kerning in iPhone UILabel

后端 未结 9 1163
Happy的楠姐
Happy的楠姐 2020-11-30 01:12

I am developing an iPhone app, and I want to set kerning in UILabel. The code I\'ve written (possibly around kCTKernAttributeName) seems to be in error. How mig

9条回答
  •  时光取名叫无心
    2020-11-30 01:51

    As far as I am aware, UILabel will not render the characteristics of NSAttributedString. There are a couple of nice open source solutions. I recently used TTTAttributedLabel as a swap in replacement for UILabel that accepts NSAttributedString.

    DTCoreText (former NSAttributedString+HTML) is also getting a bit of buzz lately.

提交回复
热议问题