Skip to content

Breaks down if using variable height cell #11

@ssfking

Description

@ssfking

Gets super laggy if using variable sized (height) cell, which is pretty common. Seems like PrepareLayout keeps getting called on scrolling, which in turn tries to find the height for EACH one of the 10000 cells...

  • (CGSize)collectionView:(UICollectionView )collectionView layout:(UICollectionViewLayout)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
    NSLog(@"height for row:%i", indexPath.row);
    return CGSizeMake(self.view.frame.size.width, 44);
    }

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