Starting with Zombies

Memory errors are difficult to find. Usually the source of the problem occurs long before the unexpected behavior or crash. When the system deallocates an object, that memory gets reused for some other object or primitive variable. The worst cases are when the memory does the following:

Image Is not reused until after a few calls to the object and then is changed to something else. Everything appears to be working even though there is a lurking problem.

Image Is reused for the same kind of object that likely has different values.

Is ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.