Background
I am implementing a UICollectionView
(for the first time) in an effort to achieve a paged horizontal scroll view of tiles. I\'d
Turns out the solution to this was actually quite simple. I just needed to overlap the UICollectionViewCell
cells by enough pixels to have them still show within the collectionView's frame after the paged scrolling finishes. The relevent code was
layout.itemSize = CGSizeMake(300, 300);
layout.minimumLineSpacing = -20.0;
And I subclassed the UICollectionViewFlowLayout
and overrode the (CGSize)collectionViewContentSize
method to return the non-overlapped size of the cells.