I have a UICollectionView
which contains a given amount of sections
that each one of them consists of a given amount of rows
.
Now, since I assigned the grid layout as vertical, the UICollectionView
looks something like this:
However when the width of the screen enlarges such as on landscape mode or on an IPad, I would like the collectionView to have a horizontal grid, and each row in the grid I wand it to contain each one of the UICollectionView
sections
vertically.
something like this:
Is there a simple way to work around this?
I have it tried in
UICollectionViewController
.Click
CollectionView
and change toCustomLayout
[UICollectionViewLayout]UICollectionViewController
UICollectionViewLayout [Not UICollectionViewFlowLayout]
XIB Subclass - [Collection Reusable View]
UICollectionViewCell
Portrait Output
Landscape Output