Who calls dealloc method? Can we implement dealloc in arc? If yes, what is the need to do that?
Answer / Neetu Sinha
In ARC (Automatic Reference Counting), the object's dealloc method is called by the runtime when the object's retain count reaches zero. Yes, you can implement dealloc manually even with ARC, but it's generally not needed because ARC automatically handles memory management.
| Is This Answer Correct ? | 0 Yes | 0 No |
When to use nsautoreleasepool??
Explain the types of protocol?
Does objective c have function overloading?
Explain what are the attributes of category?
What does the gc () method?
Is objective c better than c++?
Can I write some c++ function in same .m file? Will it compile? If no, what changes should I do to compile it?
What is objective c and swift?
What is protocol with example?
Is objective c hard?
Is swift or objective c better?
How does dispatch_once manages to run only once?