What happens with the objects if the array is released?
Answer / Jaideep Shrivastava
In Objective-C, when an array is released, its memory is deallocated. However, the objects contained within the array are not automatically deallocated unless they have a weak reference or are autoreleased. If the array contains strong references to these objects, the objects will remain in memory until all strong references to them are removed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Who calls dealloc method? Can we implement dealloc in arc? If yes, what is the need to do that?
What is method swizzling in objective c and why would you use it?
What is objective c good for?
What does it mean to be objective?
Is objective c and c the same?
Does objective-c contain private strategies?
How do you define a protocol?
Explain immutable types in objective c programming language?
What is the purpose of managed object context (nsmanagedobjectcontext) in objective-c and how does it work?
What does the gc () method?
Explain class definition in objective-c?
What does mean in objective c?