iOS Developer Question:

Download Job Interview Questions and Answers PDF

What is the meaning of "weak" keyword?

iOS Developer Interview Question
iOS Developer Interview Question

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 Interview Questions And Answers PDF

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?