Daily iOS
Memory and ARC

Advanced leak hunting

Both the Leaks instrument and Memory Graph are clean, yet every time you go back and forth to a certain screen, memory on a real device grows by 30MB. What could be the cause in a case like this?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Candidates are reachable abandoned memory (a global cache, a singleton's array, an observer list), objects that are small but hold a large backing store like a decoded bitmap, and resources outside ARC that you have to free yourself, like malloc, CGContext, and Metal textures.

Share a question