Skip to content

Delegate Methods #27

@sdkdimon

Description

@sdkdimon

Hello. Please make delegate methods of the layout to apple style, for easy manage of multiple collection views.
Delegate mehtods:

  • (CGSize) blockSizeForItemAtIndexPath:(NSIndexPath *)indexPath;
  • (UIEdgeInsets) insetsForItemAtIndexPath:(NSIndexPath *)indexPath;
    i am can not recognize which grid view called them.
    So my propose is:
  • (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)layout blockSizeForItemAtIndexPath:(NSIndexPath *)indexPath;
  • (UIEdgeInsets) collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)layout insetsForItemAtIndexPath:(NSIndexPath *)indexPath;
    It gives elegant access to UICollectionView and its layout. Thanks. Sorry for my English.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions