ios - UITextView that expands dynamically doesn't expand UIScrollview using auto layout -


i have scrollview has 2 views in content view. 1 of views has 2 textviews expand dynamically. when textviews expand, scrollview not. :(

i tried setting contentsize height height of 1 of textviews (although have 2 textviews) described here messed labels etc. under textview (they wouldn't push down/follow height of textview).

i have in viewdidlayoutsubviews right now.

cgrect contentrect = cgrectzero; (uiview *view in self.scrollview.subviews) {     contentrect = cgrectunion(contentrect, view.frame); } self.scrollview.contentsize = contentrect.size; 

is there else can try scrollview expand textview? can change auto layout?

enter image description here enter image description here


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -