非ARC实现查询

时间:2013-12-26 05:17:34

标签: objective-c automatic-ref-counting

Apple文档高级内存管理编程指南指出 -

"a 'parent' object should maintain strong references to its 'children', and that the children should have weak references to their parents"

使用ARC时可以理解这一点的实现。当我不使用ARC时,我该如何实现它。

1 个答案:

答案 0 :(得分:0)

父对象应保留子对象。子对象应该只与父对象具有分配关系。