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 |
What objective-c program consists of?
What is the difference between weak and unowned?
Is objective c deprecated?
What are the two types of tangible property?
What is an nsobject?
What are the size classes?
What happens when you create a block?
What is the difference between nsdictionary and nsmutabledictionary?
What does @synchronized() do?
What is atomic property?
Is objective c better than c++?
What are the different types of identifiers?