ymotov
ymotov

Reputation: 1489

How to increase space between text and its underline within UILabel?

I have a one-line UILabel with attributed string that has underline. Anybody know how to increase space between that text and its underline? I would think this is supposed to be a common thing to do, but I can't find an answer anywhere.

Thanks!

Upvotes: 7

Views: 4348

Answers (1)

J2theC
J2theC

Reputation: 4452

I don't think you can, but you're welcome to create an UILabel subclass and drawing your own line (using UIBezierPath or CGPath, for example) at the distance of your choice using the drawRect: method on your subclass.

Upvotes: 6

Related Questions