Skip to content

Section problem #5

@cyrilbigas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions