I have a scrollView
which contains textView
. If text is long and does not fit on a screen, I would like to increase textView
height (which I think I could do by adding NSLayoutConstraint
outlet and modifying it, correct me if I am wrong) so that view
would be scrollable (or non scrollable) depending on text length.
Pretty much, like I can set Scrolling Enabled for textView
, except I wan to scroll whole view because of images and labels I have on that view
.
EDIT. Basically - how to guess textView height based on string, in order to have proper size textView