Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJeroen de Vrind
29,772 PointsAnswer of Quiz not correct?
in the first quiz of memory management there is a question about which property declaration is right in case of a child-parent relationship. I thought that to be: weak. Now it says the answer is strong. Is that correct?
2 Answers
Holger Liesegang
50,595 PointsHi Jeroen de Vrind ,
the question your are refering to is "Which property declaration is appropriate when defining a parent-child relationship?"
PARENT --> CHILD
...in this direction, strong is correct but in the other direction:
CHILD --> PARENT
you would have to use a weak reference to avoid a retain cycle.
Jeroen de Vrind
29,772 PointsI see! Thanks very much for that quick answer!