tags:

views:

586

answers:

1

is it possible to set a UILabel's distance between the line, as i had a UILabel contain 3 lines,and linebreakmode is wordwrap

+1  A: 

If you're referring to "leading", which refers to the gap between lines of type - you cannot change this on a UILabel. That is inferred from the front of the label itself. Some people have tried to create categories to override the "leading" property of the UIFont for the label but it doesn't actually work when rendering.

If you really need to control the vertical spacing between lines of text then your best bet is to programmatically drop 1 UILabel per line of fixed width and control the vertical gap yourself.

Kevin Hoffman