views:

323

answers:

1

I am trying to create a textview with predefined height that will contain justified text.

When entering the text into the view, I need to be able to check when the view is full.

How would I do this? Core Text?

I am using sdk-3.2.

A: 

You cannot do it using UITextView (that would be the most "logical" way to do it), or any others SDK current classes.

The only simple way to do it if to put the content to be justified in an html file, justify it using CSS, and show it in a UIWebView.

yonel
I thought about this, but here the problem is to check whether the box has been filled. I could check the height using 'stringByEvaluatingJavaScriptFromString' but that may only be done once the webview has finished loading, so I don't think this will work.
LK