bryceredd / RFQuiltLayout

A UICollectionViewLayout subclass to put items in a quilting pattern
MIT License
872 stars 130 forks source link

Delegate Methods #27

Open sdkdimon opened 9 years ago

sdkdimon commented 9 years ago

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

bryceredd commented 9 years ago

Send me a PR, I'll merge it in. On Sun, Nov 23, 2014 at 4:09 PM Dmitry notifications@github.com 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.