UICollectionView with row with two columns and other row with one column
-
23-12-2019 - |
Question
I have a customer that wants a news page like this
but with UICollectionView
I have no idea how to do. I have to use reusable
element because this page may be contains infinite elements.
Idea ?
Solution
You can use -(CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath
and set different size for each cell
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow