Reputation: 3926
Starting from iOS5, my app started to freeze when using fetchedResultsController
. I have attached the debugger result after quitting the simulator.
Any help will be appreciated.
Thanks
Upvotes: 0
Views: 705
Reputation: 5346
You say in the comments that you're using performSelectorInBackground:
to update tableviews. This isn't right, all code affecting the UI should be executed on the main thread.
In addition (and I think this is what's causing the problem) you mustn't reuse a MOC across threads. Each thread must have its own MOC, which can then use the same NSPersistentStoreCoordinator
.
You should read Apple's guide on this topic.
Upvotes: 4