0

I would like to show just one row in my collectionView. This one should be scrollable but the Simulator always includes a line break and my view is not scrollable at all.

This is my configuration in my storyboard:

configuration

But somehow this is the result:

simulator

Thanks!

Burkart
  • 103
  • 10

2 Answers2

0

Try to make bigger UICollectionViewCells or reduce the UICollectionView height. Probably in your datasource you have just 9 items and they all enter in the UICollectionView of that size.

DungeonDev
  • 1,176
  • 1
  • 12
  • 16
0

u can try

objective-c UICollectionView.alwaysBounceVertical = YES

swift UICollectionView.alwaysBounceVertical = true

this is independent from the count/size of your items

Ulli H
  • 1,748
  • 1
  • 19
  • 32