Search code examples
iphoneobjective-ccore-graphicsuilabelunderline

How to draw underline to a multiline label without using CoreText?


I have been trying to underline a multiline label but I am not able to do that.

I have referred to this link but this doesn't seem to help me.

How can be done without using NSAttributedString and coreText?


Solution

  • You could use some of these open source projects from GitHub which are like UILabel's but support an attributed string:

    TTTAttributedLabel or OHAttributedLabel