ios - How do I make a UICollectionView fill it's superview with autosizing? -


i have uicollectionview dynamic size (variable amounts of data added after added view) within container view , can't figure out how fill it's superview using autoresizing.

i have tried every combination of autoresizing masks (via xib , code sanity) , nothing has worked. have verified it's superview has autosize subviews.

edit: it's not sizing it's content either, current behavior is staying @ size specified in xib.

sounds might confusing autoresizing masks auto layout. autoresizing masks tell view how update frame when superview's frame changes. not tell how lay out initially. try setting collection view's size size of content view.

xcode/ios: autoresize fill view - explicit frame size essential?


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -