72- (NSInteger)count:(int)section;
81- (CGPoint)ignoreContentOffsetForProposedContentOffset:(CGPoint)proposedContentOffset;
128- (nullable NSArray<UICollectionViewLayoutAttributes *> *)layoutAttributesForElementsInRect:
137- (nullable UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:
138 (NSIndexPath *)indexPath;
146- (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds;
154- (CGPoint)targetContentOffsetForProposedContentOffset:(CGPoint)proposedContentOffset;
The song-grid layout for the music-selection collection view.
Definition MusicListCollectionLayout.h:22
CGFloat frameScale()
Returns the cell scale factor for the current column type.
Definition MusicListCollectionLayout.mm:141
int columnType
The column-type selector: 0 is the three-column grid, 1 the four-column grid, and 2 the five-column g...
Definition MusicListCollectionLayout.h:29
void prepareLayout()
Lays the grid out, filling the cached attributes and the content width.
Definition MusicListCollectionLayout.mm:153
instancetype init()
Caches the device idiom and clears the paging state.
Definition MusicListCollectionLayout.mm:66
void cancelIgnoreOffset()
Clears the frozen-offset flag so paging resumes deferring to the superclass.
Definition MusicListCollectionLayout.mm:236
CGSize collectionViewContentSize()
The laid-out content size.
Definition MusicListCollectionLayout.mm:202
void dealloc()
Tears the layout down.
Definition MusicListCollectionLayout.mm:78