问题
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;
回答1:
Update: My answer was bad. Better approach is presented in Scroll Views Inside Scroll Views.
来源:https://stackoverflow.com/questions/19501720/uitextview-in-uiscrollview-using-auto-layout