I am using an UICollectionView
with UICollectionViewFlowLayout
.
I set the size of each cell through the
collectionView:layout:sizeForItemAtIndexPath:
When switching from portrait to landscape, I would like to adjust the size of each cell to completely fit the size of the CollectionView, without leaving padding space between cells.
Questions:
1) How to change the size of a cell after a rotation event?
2) And, even better, how to make the layout where the cells always fit the entire size of the screen?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…