How to properly trim object graph brought in by NSFetchedResultsController?

前端 未结 2 1566
终归单人心
终归单人心 2021-01-25 05:29

Without reference cycles NSFetchedResultsController can turn its managed objects into fault properly when they are not needed. But with reference cycles, it not, so

2条回答
  •  佛祖请我去吃肉
    2021-01-25 06:17

    I think you should simply avoid strong reference cycles. Usually, there is no compelling reason to have to deal with the problem you describe.

    For a detailed discussion, see Apple's Encapsulating Data chapter of the Programming with Objective-C guide where you will find a section titled Avoid Strong Reference Cycles.

提交回复
热议问题