1

How to do a NSString both right and left justified text?

thx

I tried @"%-10@" and @"+10@" ... not working

2 Answers 2

2

You can't. An NSString is just a sequence of characters. It doesn't know anything about justification, or anything else related to formatting.

2
0

Fully justified text is not supported by UILabel/UITextView

But...

This should solve your problem. Sizing a UILabel to fit?

Not the answer you're looking for? Browse other questions tagged or ask your own question.