UITableView crashes when adding 2 objects to an empty store, with sections (NSRangeException)
UITableView crashes in endUpdate, called 开发者_运维百科by the Managed Object Context "save" method, when:
1- The Core-Data Store is empty
2- The Fetched Result Controller is configured to show sections
3- Two managed objects (or more) have been added to the store
When I've searched this problem in google. I've found exactly matched error in this post. It looks like a SDK bug.Is there a any solution to avoid this bug ?
I have found that the SafeFetchedResultsController
subclass seems to resolve a number of crashes caused by problems in how NSFetchedResultsController
manages updates to table views.
精彩评论