iOS Developer Question: Download iOS Developer PDF

What is the meaning of "weak" keyword?

Tweet Share WhatsApp

Answer:

*Weak - weak reference you signify that you don't want to have control over the object's lifetime. The object you are referencing weakly only lives on because at least one other object holds a strong reference to it. Once that is no longer the case, the object gets destroyed and your weak property will automatically get set to nil.

Download iOS Developer PDF Read All 102 iOS Developer Questions
Previous QuestionNext Question
Explain Mutable and Immutable Types in Objective C Programming Language?What is synchronized() block in objective c? what is the use of that?