How to set UICollectionViewCell Width and Height programmatically

后端 未结 20 1281
终归单人心
终归单人心 2020-12-04 08:06

I am trying to implement a CollectionView. When I am using Autolayout, my cells won\'t change the size, but their alignment.

Now I would rather want to

20条回答
  •  广开言路
    2020-12-04 08:50

    If one is using storyboard and overriding UICollectionViewDelegateFlowLayout then in swift 5 and Xcode 11 also set Estimate size to None

提交回复
热议问题