Hi all :)
I am displaying some text from a sqlite3 database and would like the UITextView to resize automatically depending on the amount of text. I can do this fine as follows:
TextLabel.scrollEnabled = YES; TextLabel.userInteractionEnabled = YES;
[TextLabel setFrame:CGRectMake(55.10, 26.15, TextLabel.contentSize.width, TextLabel.contentSize.height)];
This works fine. I am struggling when trying to set a maximum height.
So the UITextView will resize to the text unless it reaches a maxiumum height in which case the user will have to use the scroll bar to view the remaining text.
Any help would be highly appreciated