objective c - dynamically load UICollectionView in xcode -
we have label followed uiviewcollection. height of label dynamically set based on content. based on height of label, want start uiviewcollection label ends. tracking label x, y, width , height , adding padding y in code calculate start of uiviewcollection. however, uiviewcollection not move @ all. because of specified storyboard? tried in viewdidload , viewwillappear.
also, if replace uiviewcollection label such there 2 labels 1 below another, able dynamically load start of 2nd label if code placed in viewwillappear.
please can moving uiviewcollection or down based on previous label height?
thanks in advance.
it may because use autolayout. can switch off autolayout or set translatesautoresizingmaskintoconstraints yes uiviewcollection, , set current location
Comments
Post a Comment