Daily iOS
Memory and ARC

ARC basics

What is ARC, and why do we need it?

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

Under ARC the compiler inserts retain and release calls automatically at build time and frees an object the moment its reference count hits zero. It replaced the manual pairing of MRC, which produced leaks and use-after-free bugs, but it can't break reference cycles on its own.

Share a question