iOS Swift Basics Tutorial: Protocols and Delegates

preview_player
Показать описание
In this tutorial you are going to learn how to use the Delegation design pattern in your apps. A common usecase is transferring data from one ViewController to another.

***COMMENTS****
If you have questions about the video or Cocoa programming. Please comment below.

Рекомендации по теме
Комментарии
Автор

Brian, I have read, and seen heaps of tutorials about custom protocols/delegates, and this is the first one that actually makes sense. The syntax is a little out of date, but it was still super easy to follow along and understand! Thank you!

alecsaunders
Автор

Hey man great tutorial, straight to the point, no garbage. I have been trying to find a simple tutorial on how to use delegation and almost everyone fails at it.

nactd
Автор

I have been going round in circles trying to get this right. You just helped me greatly! Thanks :) Keep up the good work.

AAKhanivore
Автор

Thank you so much, Brian! I've spent all day trying to share data between my controllers and now finally worked like a charm. I really appreciate that!! Awesome tutorial! Best from Brazil. :)

marcellygodinho
Автор

This was super helpful. I had been missing secondViewController.delegate = self in my project, but all is well now. Thanks!

BenWinters
Автор

Though I'm learning Swift5, I find your explanation highly relevant. Thank you for the video.

marting
Автор

Thanks Brian . Simple and understandable tutorial, thanks for the video.

sreekanthp
Автор

Brian. You've got great tutorials but I really wish you would refrain from using so much Objective C syntax in your code (e.g. Use of NSString instead of String and NSMutable Arrays etc.). I'm really trying to clear my head of Objective C and you keep bringing it back. Can you keep these tutorials as pure to Swift as possible? That make for a really fantastic course.

commentguy
Автор

Thanks a lot for this video! I was struggling to understand the concept of delegation and this video really helped.

bennychewDev
Автор

Hi. Thanks for tutorials Brian. A question though. Why use a delegate instead of just unwinding the segue ?

sminkly
Автор

Great video, I've been trying to figure protocols and delegates out and this helped a bunch! Keep it up!!

robertmcginn
Автор

Thanks Brian Advent your videos are great. Keep them coming!

mariodiaz
Автор

Thank you for the video, I'm really stupid and you explain it slowly with indications 👍

Pedruchito
Автор

Wow, only if I new this so long ago.. thanks a lot for the video

drfalcoew
Автор

Thank Brian Advent so so much !
But you can help me know that I should watch your videos first and next. A basically for beginners like me

doanntuann
Автор

Thank you a lot for clear explanation!

yevheniitechnologic
Автор

First of all: great tutorial! :)
I have a question, probably is more a tutorial request..
In Objective C I used to create blocks in parallel with delegates.
But now in Swift I don't know how to do that. May you do a tutorial about blocks (closures) in Swift?

P.S. With blocks parallel to delegates I mean this:
[myObject setCompletionBlock:]

Thank you in advance!

marcospeziali
Автор

Thank you so much ... you the man. Keep it up. Very much helpful..!!

TheBinary
Автор

Great tutorial - Bang on the money!
Cheers!

Twiggen
Автор

Thank you for great tutorial, I help me so much!

cupham