ARC basics
What is ARC, and why do we need it?
What is ARC, and why do we need it?
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.
Memory and ARCShort answerBasics
Before ARC, Objective-C code called retain, release, and autorelease directly. What did…
#retain #release
Memory and ARCShort answerIntro
Can you explain the difference between weak and strong?
#arc #reference-counting
Memory and ARCShort answerBasics
When would you use unowned instead of weak?
#lifetime
Memory and ARCShort answerAdvanced
This code, which loads an image asynchronously in a UITableView cell, crashes now and…
#lifetime