Can we implement dealloc in arc? If yes, what is the need to do that?
Answer / Shivam Dixit
Yes, you can implement dealloc manually even with ARC, but it's generally not needed because ARC automatically handles memory management. However, if you want to perform custom cleanup tasks (like saving user data or closing network connections) before an object is deallocated, you can override dealloc.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you add a category in objective c?
What is the difference between class and category?
Why is objective c used?
What is atomic in objective c?
What is the major difference between objective c and swift?
What is the point of closures?
Is closure a function?
What is the use of category in objective-c?
When will you use nsarray and nsmutablearray?
What is hashable?
What is a category in objective c?
Can objective c run on windows?