iOS UICollectionView prototype cell size property ignored

后端 未结 9 2040
花落未央
花落未央 2021-01-30 19:51

I\'m using a UICollectionView with two prototype cells. The prototype cells have different widths and contain different controls (image view and web view). I\'m definitely ret

9条回答
  •  情话喂你
    2021-01-30 20:31

    If all your cells are the same size, you should simply set the UICollectionView's Cell size properties to the same as the UICollectionViewCell's size properties.

提交回复
热议问题