-->

prevent uicollectionview section starting on new l

2019-03-29 03:44发布

问题:

This question already has an answer here:

  • UICollectionView remove section breaks with UICollectionViewFlowLayout 1 answer

I'm using a flow layout on uicollectionview. It all looks great except it seems to start another section on another line. This seems like a sensible default but how do I override this and make the sections flow seamlessly on the same line as if no new section began?

Thanks!

回答1:

There is a library I found which has this as one of its features

RDHCollectionViewGridLayout

https://github.com/rhodgkins/RDHCollectionViewGridLayout