Paging UICollectionView by cells, not screen

前端 未结 22 2148
予麋鹿
予麋鹿 2020-12-04 05:00

I have UICollectionView with horizontal scrolling and there are always 2 cells side-by-side per the entire screen. I need the scrolling to stop at the begining

22条回答
  •  忘掉有多难
    2020-12-04 05:43

    You can use the following library: https://github.com/ink-spot/UPCarouselFlowLayout

    It's very simple and ofc you do not need to think about details like other answers contain.

提交回复
热议问题