iOS UICollectionView prototype cell size property ignored

后端 未结 9 1940
花落未央
花落未央 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:28

    You can set size of UICollectionViewCell in UICollectionView properties.

    In Storyboard, Select Collection View at the Document Outline, then edit your Cell Size in Size Inspector.

    And you should change Cell's size type to Default, if it is Custom.

提交回复
热议问题