Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITextView in UIScrollView using auto layout

I have a scrollView, which has two subViews: an imageView and a textView. When there is a small text in the textView everything is fine,but , when the content of textView is too big for the height of textView, it doesn't expands the boundaries. Instead of this, it offers me to scroll the textView. But i want to scroll only the scrollView.So how can i make textView resize automatically?

I know how to do it without auto layout, but i want to know how to do it with auto layout;

like image 438
igrrik Avatar asked Oct 21 '13 18:10

igrrik


1 Answers

Update: My answer was bad. Better approach is presented in Scroll Views Inside Scroll Views.

like image 167
Arek Holko Avatar answered Oct 15 '22 14:10

Arek Holko