简体   繁体   中英

Non-ARC implementation Query

Apple document Advanced Memory Management Programming Guide state that -

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

Implementation of this is understood while using ARC. How am I supposed to implement it when I am not using ARC.

Parent object should retain the child object. Child object should only be having assign relation to parent.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM