NSFetchedResultsController calls didChangeObject delete instead of update

前端 未结 2 887
遇见更好的自我
遇见更好的自我 2021-01-03 21:05

This is the code, I save the model via Magical Record:

MagicalRecord.saveWithBlock({ (localContext) -> Void in
                    var localNotification =         


        
2条回答
  •  执笔经年
    2021-01-03 22:03

    What is happening here is that instead of the NSFetchedResultsChangeUpdate change event you expect, you are getting a NSFetchedResultsChangeDelete followed by NSFetchedResultsChangeInsert. You may also see a NSFetchedResultsChangeMove with the same indexPath as source and destination. This is a known issue in several beta versions of iOS 9 22380191 and others.

提交回复
热议问题