Who calls dealloc method? Can we implement dealloc in arc?
Answer / Kaleem Salahuddin
The dealloc method is called by the Objective-C runtime when an object is about to be deallocated. However, in ARC (Automatic Reference Counting), you do not need to explicitly call dealloc. Instead, ARC takes care of memory management for you. You can still implement the dealloc method to perform custom cleanup operations if needed, but it will only be called when ARC determines that the object's retain count reaches zero.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the types of ios binaries you can create using xcode?
What is the difference between method and type?
What is an objective description?
What is a delegate? Can you retain delegates?
What are the two types of m files?
What do you understand by protocol?
What are the advantages of using objective-c?
What is the difference between #import and #include in objective-c?
What do you mean by synthesized in objective-c?
How big is a atom?
What is the primary use of the category in the objective-c?
Is objective-c a dynamic language?