What is the difference between weak and unowned?
Answer / Varsha Choudhary
Weak references do not increase the retain count of the referenced object, and they are set to nil automatically when the referenced object is deallocated. Unowned references also do not increase the retain count but cannot be nil; this means that the referencing object must be assured to exist before using the unowned reference.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain immutable types in objective c programming language?
Can I write some c++ function in same .m file?
Who introduced objective-c & when?
What is difference between method and constructor?
How to call function?
How do you check for leaks?
How to sort array of dictionary in objective c?
What is the major difference between objective c and swift?
What is a hash string?
What is ivar objective c?
How do I create a bridging header file?
Tell us the result when you invoke a particular method on a nil pointer?