Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am working with a UICollectionView that displays fewer items than necessary to fill the whole screen. With this setting, the view simply does not scroll (move and bounce), when I add like 20 items it works.

How can I force the collection view to scroll, without enough items to fill the screen?

Thanks for your help!

BTW I already tried to set the contentSize (e.g. to {320 , 1000}) but it still does not work.

share|improve this question

1 Answer

up vote 3 down vote accepted

Try to set alwaysBounceVertical property to YES:

self.collectionView.alwaysBounceVertical = YES;

The default value is NO

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.