When should you call dealloc method? Is it possible to implement dealloc in arc?
Answer / Saurav Yadav
The dealloc method is called automatically by ARC when an object's retain count reaches zero. However, you can still override the dealloc method if needed, but it's not typically necessary. Overriding dealloc can be useful for performing custom cleanup operations before the object is deallocated.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is reference counting garbage collection?
Does copy increase retain count?
What is protocol in objective-c?
What are objective c properties?
How we can layout subviews in a view?
Explain how to call a function in objective-c?
Is objective c superset of c?
What is the difference between a script and function?
What is an objective fact?
What is concept of property?
How to call objective c function in swift?
What are the blocks? How will you use them?