Pergunta de entrevista da empresa Goqii Technologies

4. Strong, weak and retain cycle?

Resposta da entrevista

Sigiloso

1 de jul. de 2017

These are properties which are relate to Memory management Reference Counting and Ownership. Strong property : when any object A having strong reference to any other object B then it means A needs B to exist In memory by incrementing its Reference count by 1 .. while in same case B reference to A with weak property then it means it just having referenced to A without needing to have its reference count in memory .. and this way it's also manage retain release cycle. Hope this helps.

1