I have collectionview with horizontal flowlayout direction and size of a UICollectionviewcell is screen size. Is it possible to scroll vertical if content of cell exceeds the screen size height?
1 Answers
Yes you can. I think, iPhone Youtube app is created in the same fashion!! :)
You can create a CollectionView controller with its collection view set to horizontal scrolling, set the collectionView cell size to the screen size. And set the paging enabled property of collection view to true.
THis will allow you to scroll horizontally as if each cell was a page itself.
Next up, you can add another collection view to each of these cells, with vertical scrolling property of this collection view.
THis can be achieved very easily by subClassing UICollectionViewCell of the CollectionViewController. In the subclass, each cell must have a UICollectionView property.
Remember that the UICollectionView in each cell will have to have delegate and datasource set up properly.
This is exactly what you are looking for.
Source of all information is within this link just above. Hope this helps
UICollectionView
in aUIScrollView
? – William Anderson