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 |
What is the use of category in objective-c?
How do I create a bridge header in objective c?
Tell me something about objective-c blocks?
Does copy increase retain count?
How different is objective c from swift?
Distinguish between @synthesize and @dynamic in objective –c?
What is an accessor method?
Who made objective c?
What is an extension?
What does alloc mean in objective c?
What are the main objectives of training?
What is a delegate objective c?