Dealloc is termed as a result of memory management. Once an objects “retainCount” reaches zero, then a dealloc message is mechanically sent there to object. You should never decision dealloc on objects unless it's a decision to [super dealloc]; at the tip of Associate in Nursing overridden dealloc.



Overridden dealloc.

(Void) dealloc


[ivar release]; //Release any retained variables before super dealloc

[super dealloc]; //Only place in your code you should ever call dealloc


Suggest An Answer

No suggestions Available!