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!

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 trial

iOS Delegation in iOS The Delegate Pattern Acting As A Delegate

Use of weak keyword needlessly.

what happens if we use weak keyword needlessly.

1 Answer

Hi Irem,

There are situations when it would make sense to have two objects that both have a weak relationship to each other. Ultimately, though, some other object will need to have a strong relationship to each of the two objects... or they'll quickly be garbage-collected.

Check out this SO thread.