reference cycle
-
ARC: Resolving Strong Reference Cycles Between Class Instancesios 2020. 9. 7. 23:41
들어가며 이 전 글은 ARC에 대해서 알아보았습니다. 오늘은 Strong Reference로 인한 Retain Cycle을 어떻게 해결하면 좋을지에 대해서 알아보도록 하겠습니다. Resolving Strong Reference Cycles Between Class Instances Swift provides two ways to resolve strong reference cycles when you work with properties of class type: weak references and unowned references. Weak and unowned references enable one instance in a reference cycle to refer to the other insta..