PDA

View Full Version : Label text alignment




davbeck
Sep 3, 2009, 04:26 PM
Is there a way to left and right align text on a label? Maybe using stringWithFormat? I don't want to place the right string so many characters over, I want the right side of the string on the right side of the label and vice versa for the left string.

|left right|
|not this |



dejo
Sep 3, 2009, 04:34 PM
How many label instances are we looking at here?

davbeck
Sep 3, 2009, 04:43 PM
I was hoping to use one per row. The example above has 2 rows.

I want to avoid using two labels because ideally, if there was too much for one line, it would be truncated (possibly in the middle).