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 |
What is a delegate objective c?
Explain what are the attributes of category?
What is the protocol in objective c?
When should you call dealloc method?
What happens if you add your just created object to a mutable array, and you release your object?
What is the difference between polymorphism and abstraction?
What is assign property in objective c?
What is atomic property?
What is responder chain?
What are the types of ios binaries you can create using xcode?
How do I create a bridging header file?
How to call methods in objective c?