Skip to content

TMQuiltView should cache the heightForCellAtIndexPath #13

Description

@rickmak

TMQuiltViewDelegate have protocol: - (CGFloat)heightForCellAtIndexPath:(NSIndexPath *)indexPath;. And it result a performance issue if the height need a calculation according to cell content. The currently implementation simply request the method every time it layoutSubView(though rectForCellAtIndex).

Like UITableView, it should call once for each indexPath and cache it. Prevent re-calculation during scroll. The cache should be clear after the user call follow method:

- (void)beginUpdates;
- (void)resetView;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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