[quote=“Flyer28”]So in practice the dealloc method does nothing?
i.e. It looks like this?
Before ARC, we would need to release our ownership of our variables in dealloc. The implementation would look like:
Calling dealloc on NSObject (via the super call) would actually free up the memory on the heap that the object was taking up.
Under ARC, the system takes care of the releases and deallocs for us. So although when we override dealloc, we leave the implementation “blank”, at compile time, a [super dealloc]; line is added at the end. You can go ahead and try to add that super call yourself; you’ll see the compiler complain to you that “explicit calls to dealloc are not allowed under ARC,” or something to that extent.
Let me know if that helps!