How ARC Counts References
What ARC does at compile time, retain/release calls and object lifetimes.
Welcome
Automatic Reference Counting (ARC) manages class instance memory. Understanding how it counts references helps you write leak-free code.
What ARC Does
ARC tracks how many *strong* references point to each class instance. When the count reaches zero, it calls `deinit` and frees memory — automatically.
All lessons in this course
- How ARC Counts References
- Retain Cycles: Causes and Detection
- weak and unowned References
- Closure Capture Lists and [weak self]