UITextView in UIScrollView using auto layout

杀马特。学长 韩版系。学妹 提交于 2019-12-12 11:10:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!