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 |
What is the difference between a script and function?
How do you write a good objective?
What’s the contrast between utilizing a delegate and warning?
What’s the contrast between active, inactive, not-running, background and suspended execution states?
What is the use of category in objective-c?
What is .h and .m file in xcode?
Does objective c have garbage collection?
How to declare global variable in objective c?
Distinguish between @synthesize and @dynamic in objective –c?
What is class extension?
Can a protocol have properties?
What do you mean by cocoa?