Question

Is it possible? Align the text fully justified? Does anyone know any hack or Interface Builder plugin?

Thanks!

Was it helpful?

Solution

You cannot do it using UITextView, or any others. When I need justified text, I construct an html and show it in a UIWebView.

OTHER TIPS

Here is the solution in my blog. I don't like use WebView. Also hyphenation word wrapper included.

From the definition of UITextAlignment it looks like you can't. Perhaps you can use the text drawing code to draw the text yourself, since you won't need interaction it shouldn't be too difficult.

You can do it using CoreText, yes, you will have a bit more of work, but it works like a charm. You can check this tutorial for that.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top