How can I track/observe all changes within a subgraph?

前端 未结 3 977
臣服心动
臣服心动 2020-12-22 17:08

I have a NSManagedObjectContext in which I have a number of subclasses of NSManagedObjects such that some are containers for others. What I\'d like to do is watch a top-lev

3条回答
  •  温柔的废话
    2020-12-22 17:42

    for me it's just lost following two func, maybe this save hours for someone

    func controllerWillChangeContent(controller: NSFetchedResultsController) {
        tableView.beginUpdates()
    }
    
    func controllerDidChangeContent(controller: NSFetchedResultsController) {
        tableView.endUpdates()
    }
    

提交回复
热议问题