What is a good way to determine the current height of the content height in a UITextView?
+1
A:
Look in UIStringDrawing.h for various text measuring functions. You probably want something like:
[myTextView.text sizeWithFont:myTextView.font forWidth:myTextView.bounds.width lineBreakMode:UILineBreakModeWordWrap].height;
If you just want to know what the text view is using, then use:
[myTextView contentSize].height;
drawnonward
2010-04-24 20:30:06