I initially tried to do this with two UICollectionViews stacked on top of each other. However, for its correct change there was a nightmare with Auto-layout (I am a new iOS developer, so this is more criticism of my skill than Auto-layou t). I would like to stack two sections of UICollectionView cells on top of each other, like this:
+----------------------+ |+-Section 0---------->| | +-------+ +-------+ | | | | | | | | | | | | | | |Cell 0 | |Cell 1 |+-> | | | | | | | | | | | | | +-------+ +-------+ | +--Section 1---------->| | +-------+ +-------+ | | | | | | | | | | | | | | | | | | | | |Cell 0 | |Cell 1 |+-> | | | | | | | | | | | | | +-------+ +-------+ | | | +----------------------+
I am using a custom thread layout, but I'm not even sure where to start splitting my current 2 sections to stack them. My sections are currently folded as follows:
+--------(Offscreen) | + +--------xxxx--------+v | Section 1 | Section 2 | +-----+ +-----+ | +-----+ +-------+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +-----+ +-----+ | +-----+ +-------+ | | | | | +-----+ +-----+ | +-----+ +-------+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +-----+ +-----+ | +-----+ +-------+ | | | | | xxxx | +--------xxxx--------+
source share