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

Reload cells after new cell insertion with NSFetchedResultsController #2

Closed
patrickmidori opened this issue Jul 31, 2012 · 3 comments
Closed

Comments

@patrickmidori
Copy link

Trying to insert a new Cell with NSFetchedResulltController doesn't seems to reload the cells. New cell doesn't appear event if I put a reloadData after it. It appears when I restarted the app, so the insertion in Core Data works. I'm using the last TMQuiltView.m.

@jogloran
Copy link

The problem is that layoutSubviews is never called, which means that the bookkeeping for columns isn't refreshed. If you call [quiltView setNeedsLayout], it should work.

@patrickmidori
Copy link
Author

Unfortunately it doesn't seems to change anything. In fact layoutSubviews is called after insertion but nothing happens on the view. Maybe it comes from my code.

@bvirlet
Copy link
Member

bvirlet commented Jul 31, 2012

@jogloran Your commit is not completely accurate because it only takes care of "reloadData".

I fixed the issue here: 99a0f20

@bvirlet bvirlet closed this as completed Jul 31, 2012
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

3 participants