How to do a NSString both right and left justified text?
thx
I tried @"%-10@"
and @"+10@"
... not working
How to do a NSString both right and left justified text?
thx
I tried @"%-10@"
and @"+10@"
... not working
You can't. An NSString
is just a sequence of characters. It doesn't know anything about justification, or anything else related to formatting.
Fully justified text is not supported by UILabel/UITextView
But...
This should solve your problem. Sizing a UILabel to fit?