Skip to content

Section problem #5

Description

@cyrilbigas

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions