Question d’entretien chez Prestige Group

What is the difference between weak and strong in iOS memory management?

Réponse à la question d'entretien

Utilisateur anonyme

5 déc. 2023

This question assesses your understanding of memory management in iOS using ARC (Automatic Reference Counting). A strong reference increases the reference count of an object, while a weak reference does not. Weak references are often used to avoid strong reference cycles (retain cycles) and prevent memory leaks.