LinkedIn·Mobile Engineer·Technical Phone Screen
- How does ARC work, and how is it different from garbage collection?
- Walk me through strong, weak, and unowned references and when you'd choose each.
- How do retain cycles form, and what are the main patterns you use to break them?
- What are autorelease pools and when would you actually use one in modern iOS code?
- What tools do you use to find memory leaks and how do you approach diagnosing them?
“Started okay, explained retain counts going to zero and deallocation happening synchronously.”