UICollectionView with different cell size

后端 未结 3 1145
感情败类
感情败类 2021-02-14 15:35

My goal is to create a UICollectionView with a layout as depicted below.

3条回答
  •  春和景丽
    2021-02-14 16:01

    Without creating a custom layout of collection view it is not possible to achieve what you want.

    You can create custom cell size using its delegate method sizeforitematindexpath.

    Also, check this link which helps to create a custom layout.

提交回复
热议问题