Who calls dealloc method? Can we implement dealloc in arc?
Answer Posted / 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 |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category