标签: 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时,我该如何实现它。
答案 0 :(得分:0)
父对象应保留子对象。子对象应该只与父对象具有分配关系。