ASCollectionViewDelegateFlowLayout Protocol Reference

Conforms to ASCollectionDelegate
Declared in ASCollectionView.h

Overview

Defines methods that let you coordinate with a UICollectionViewFlowLayout in combination with an ASCollectionView.

– collectionView:layout:insetForSectionAtIndex:

This method is deprecated and does nothing from 1.9.7 and up Previously it applies the section inset to every cells within the corresponding section. The expected behavior is to apply the section inset to the whole section rather than shrinking each cell individually. If you want this behavior, you can integrate your insets calculation into constrainedSizeForNodeAtIndexPath please file a github issue if you would like this to be restored.

- (UIEdgeInsets)collectionView:(ASCollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section

Discussion

This method is deprecated and does nothing from 1.9.7 and up Previously it applies the section inset to every cells within the corresponding section. The expected behavior is to apply the section inset to the whole section rather than shrinking each cell individually. If you want this behavior, you can integrate your insets calculation into constrainedSizeForNodeAtIndexPath please file a github issue if you would like this to be restored.

Declared In

ASCollectionView.h

– collectionView:layout:referenceSizeForHeaderInSection:

Asks the delegate for the size of the header in the specified section.

- (CGSize)collectionView:(ASCollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section

Declared In

ASCollectionView.h

– collectionView:layout:referenceSizeForFooterInSection:

Asks the delegate for the size of the footer in the specified section.

- (CGSize)collectionView:(ASCollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout referenceSizeForFooterInSection:(NSInteger)section

Declared In

ASCollectionView.h