When should you call dealloc method?
Answer / Manish Jaiswal
You should call the dealloc method when an object is no longer needed, usually before it's about to be released by ARC (Automatic Reference Counting) or manually before memory deallocation. It allows objects to perform any necessary cleanup before they are destroyed.
| 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 objective c runtime?
Why is objective c used?
Is c++ similar to objective c?
Explain the types of protocol?
How do I create a bridging header file?
Does objective c have pointers?
What is difference between datasource and delegate?
What is super in objective c?
What is toll-free bridging?
What can’t we put into an array or dictionary?
How to reverse array in objective c?