I am working on a ARC based project . I have never worked on Non ARC based project .Recently I
came across a zombie in my ARC enabled project.As far as I understood there wont be memory
leaks in ARC , as the objects will be deallocated automatically.But I came across a zombie
saying “message passed to a deallocated instance”.My confusion is is a Memory Leak equivalent
to a Zombie. If that is the case then Memory Leak occur in ARC too ? Any help ?
“Zombies” in Objective-C parlance are the opposite of leaks. A leak is a bit of allocated memory that you no longer have any references to, so you can’t free it. A zombie is an object that has been deallocated, but references to it still exist and messages are still being sent to it (which can lead to all sorts of unpredictable behavior).