Specify row and column number for UICollectionView

前端 未结 5 1789
失恋的感觉
失恋的感觉 2021-01-03 23:25

I want to show a UICollectionView which contains exactly 2 rows and 100 cells in each row.

// 1
- (NSInteger)collectionView:(UICollectionView *)view numberOf         


        
5条回答
  •  無奈伤痛
    2021-01-03 23:51

    The Number of sections dictates how many cells will be in each row, assuming the cell size allows for it.

    A section will always start a new row.

提交回复
热议问题