Dynamic size UICollectionView cell

后端 未结 4 1738
失恋的感觉
失恋的感觉 2020-12-01 00:20

\"enter

1) How can i achieve as shown in image with UICollectionView?

4条回答
  •  执念已碎
    2020-12-01 00:47

    Instead of creating variable heights of images in a row fix same sizes of heights of images but can have different widths in a row.Create such combinations and display and you can reuse same cell for different height with one or more images of different widths in row. i have done the sameit gives the same feel as you are looking for like google images search

提交回复
热议问题