RFQuiltLayout icon indicating copy to clipboard operation
RFQuiltLayout copied to clipboard

Delegate Methods

Open sdkdimon opened this issue 10 years ago • 1 comments

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.

sdkdimon avatar Nov 23 '14 23:11 sdkdimon

Send me a PR, I'll merge it in. On Sun, Nov 23, 2014 at 4:09 PM Dmitry [email protected] wrote:

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.

— Reply to this email directly or view it on GitHub https://github.com/bryceredd/RFQuiltLayout/issues/27.

bryceredd avatar Nov 24 '14 00:11 bryceredd