UICollectionView is too wide. How can i make it the width of the device?

后端 未结 2 1063
忘了有多久
忘了有多久 2021-01-25 23:30

I created a new UICollectionView in the storyboard. My problem is that the cells try and fit a larger width than the width of the device, so the ones on the right get cut off. W

2条回答
  •  青春惊慌失措
    2021-01-26 00:24

    you need to pinned all edges of your UICollectionview...check out here

    enter image description here

    By pinned all edges, you'll get equal height and width of screen

提交回复
热议问题