ios - UICollectionView does resizing when embedded in a container view -


i have view 2 container views different background colours. using auto layout. both container views size correctly (going colours). first view has button in , child view sizes correctly , aligns button expected.

the second view has uicollectionview top level view not size itself. collection view (with different background colour) seems flow off side of whole screen. way bigger container view embedded in.

the container view has "autoresize children" set (tried both ways). i've tried different modes container: top, scale, aspect fit.

the collection view has "autoresize subviews" set (tried both ways). i've tried various different modes: scale, top, aspect fit. collection view has custom layout problem happens whether specified or not.

does have ideas on how can uicollectionview resize match it's parent? using swift it makes difference.

i running xcode 6.4.


Comments