开发者

UITableView crashes when adding 2 objects to an empty store, with sections (NSRangeException)

开发者 https://www.devze.com 2022-12-25 14:48 出处:网络
UITableView crashes in endUpdate, called 开发者_运维百科by the Managed Object Context \"save\" method, when:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号