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

Ingo Ngoyama
Ingo Ngoyama
4,882 Points

delegate variable API

Wouldn't it be better API to call the delegate variable in race delegator in stead. It seems just to bestow the power of delegation to objects as it needs to. This made it easier for me to understand. Seems to be in three parts

  1. Delegation= the delegation required code
  2. Delegator= the variable/ delegate assigner in the target class that you want to be delegated.
  3. Delegate= the The object that the Delegator has informed that its code is needed for a certain function