weak vs strong
Can you explain the difference between weak and strong?
Can you explain the difference between weak and strong?
strong adds 1 to the reference count and owns the target's lifetime; weak doesn't raise the count and doesn't own it. Since the target can go away first, a weak reference always has to be an optional var.
Memory and ARCMultiple choiceIntro
Which of the following statements about weak references are correct? Select all that…
#weak #strong #optional
Memory and ARCShort answerIntro
What is ARC, and why do we need it?
#arc #reference-counting
Memory and ARCShort answerAdvanced
From the moment an object's last strong reference goes away until the memory is actually…
#weak #arc
Memory and ARCMultiple choiceBasics
Which of the following statements about ARC and weak are correct? Select all that apply.
#weak #arc