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?
Comments
Post a Comment