iOS 6.0: UICollectionView doesn't respect clipsToBounds with pagingEnabled

后端 未结 4 1278
太阳男子
太阳男子 2021-02-06 07:37

Background

I am implementing a UICollectionView (for the first time) in an effort to achieve a paged horizontal scroll view of tiles. I\'d

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 08:27

    Many thanks for the tip about using a negative minimumLineSpacing. I created a tester application which uses a collection view cell loaded from a xib file. The cell has a transparent background and an “inner” view for the cell's content.

    In this way, a custom flow layout is not necessary.

    https://github.com/j4johnfox/CollectionViewTester

提交回复
热议问题