Beginner
Swift
Q21 / 100
What is a weak reference?
Correct! Well done.
Incorrect.
The correct answer is B) A reference that does not prevent the object from being deallocated by ARC; automatically becomes nil when the object is freed
B
Correct Answer
A reference that does not prevent the object from being deallocated by ARC; automatically becomes nil when the object is freed
Explanation
weak var delegate: MyDelegate? doesn't increase the retain count. When the object deallocates, the weak reference becomes nil.
Progress
21/100