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

Section problem #5

Open
cyrilbigas opened this issue Mar 2, 2015 · 0 comments
Open

Section problem #5

cyrilbigas opened this issue Mar 2, 2015 · 0 comments

Comments

@cyrilbigas
Copy link

Hello,

if I have 3 sections with different number of items In Section like this :

- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
{
    return 3;
}
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
    NSInteger count=0;

    if(section == 0)
        count= 8;
    else if (section == 1)
        count= 2;
    else if (section == 2)
        count= 9;
    return count;
}

The collectionView reacts badly...

How to use your "CollectionView" if I have a flexible content ? With Different "numberOfSectionsInCollectionView" and different "numberOfItemsInSection" ?

Is there a property I would not have seen?

Thank you.

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

1 participant