Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delegate Methods #27

Open
sdkdimon opened this issue Nov 23, 2014 · 1 comment
Open

Delegate Methods #27

sdkdimon opened this issue Nov 23, 2014 · 1 comment

Comments

@sdkdimon
Copy link
Contributor

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.
@bryceredd
Copy link
Owner

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
#27.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants