Reputation: 2599
I have a UITextView with a width of 240. Monitoring the text width shows that it is wrapping the text when the text width >= 224.
In this situation, where the UITextView wraps the text onto the next line, but the length of the text is not greater than 240, the text height is being reported as if it was a single line of text, rather than the height of two lines (since the UITextView wrapped it).
Any ideas why this is happening and how i can resolve it?
Upvotes: 0
Views: 163
Reputation: 913
UITextView is a subclass of UIScrollView and there are some default insets applied—8 pixels on both the left and right side. I have never managed to find a way to get rid of them.
Upvotes: 1