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

TMQuiltView should cache the heightForCellAtIndexPath #13

Open
rickmak opened this issue Mar 18, 2013 · 0 comments
Open

TMQuiltView should cache the heightForCellAtIndexPath #13

rickmak opened this issue Mar 18, 2013 · 0 comments

Comments

@rickmak
Copy link

rickmak commented Mar 18, 2013

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;
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