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 trial

iOS

Marwi M
Marwi M
1,411 Points

Delegation pattern

hello there , is Delegation pattern concepts explained in the IOS track ? actually , i tried to find out , but it seems not there.

in my humble opinion i think this is an essential concept in objective c , and it will be really helpful to add it to the track.

any reflections ..?

5 Answers

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

Marwi M I have created a video explaining delegation. The video shows you how to create and use your own delegate. Here's the sample code from the video. Hope it helps you understand delegation a little better.

Delegation is just one of the many design patterns in iOS. Here are some blog posts I've written on the three major ones:

Marwi M
Marwi M
1,411 Points

thanks , and great work .. the best training website ..ever !

Thomas Nilsen
Thomas Nilsen
14,957 Points

Also be sure to check out IOS Foundation (Deep Dive) here at Treehouse. Under the chapter called storyboards - one of the sub chapters is all about delegation :)

Marwi M
Marwi M
1,411 Points

thanks..

Great! I had got my head around delegation recently, but this still covered a couple of things I hadn't understood properly yet. I feel like I should go back through my current project and replace quite a bit of it using this pattern. :)

You could check out this article that explains delegation in a good way.

Marwi M
Marwi M
1,411 Points

thanks , for sharing .. i like the way they represent the idea .. and it was helpful ..

Great!

Great thanks