Delegate in swift Protocol Pattern Tutorial | Delegate in Swift iOS | Delegate design pattern

preview_player
Показать описание
Delegate in swift tutorial provides an introduction to what the iOS swift delegate protocol is with simple examples to understand the delegate pattern using protocols in swift.

The swift delegate protocol example used in this video is based on an activity that many of us do in our daily life and hence it's easy to relate and understand this advance swift topic.

Swift protocol delegate pattern is also a fundamental interview question that's always asked, after watching this video anyone can answer the questions like What is delegate? and what is swift protocol delegate pattern?

Protocol oriented programming in swift 4 or Protocol oriented programming in swift 5 will always remain the same because of their basics and core concepts.

This video answers questions to what is delegate pattern or what is delegate protocol pattern by explaining the core concepts in simple words and in details ensuring clean code in swift disciplines.

I have also provided some really nice tips on memory management as what are the pointers that we as programmers should be careful while implementing swift protocol extensions or the delegate pattern in general.

There are very less video on swift tutorial for experienced programmers and codecat15 ensures that it delivers content that even a beginner can grasp so welcome to codecat15 YouTube channel where even beginners learn advance swift with ease.

In this video we will understand how to implement delegate pattern with protocols and in part 2 we shall learn how to implement the delegate pattern using closures.

If you have any questions then feel free to send an email or mention it via comments and I will do my best to resolve your doubts.

Don't forget to 👍subscribe to the channel 👍 and do share it with your friends and anyone who wants to learn swift.

Connect with me on social media

Download the playground file from the given sites and do subscribe to the channel

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

The delegate pattern is just like the function pointers in c and c++ but usually explained with a ton of high-funda technical words, but codecat15 always tries to make and explain things in the simplest way so that young developers can leverage this pattern and understand the actual meaning of this. I hope you not only learn but understand this pattern and use it in your project. You may download the source code files from the description link and play with it. Part 2 of this video is coming soon. Until then please subscribe to the channel if you find this helpful in understanding swift in a simple way 👍
And don't hesitate to ask me any questions via comments or on the email.

CodeCat
Автор

Superb !!!
I was really confused by all the lectures on youtube only telling how to implement delegate protocol but no logic or what so ever the science behind it.
Thanks for this video.
Really appreciate it.

usamariaz
Автор

ab tak mai, jab bhi data transfer karna hota tha to main blindly delegate & protocol ke path use karta the, but now I understand the actual mean of it when you did without protocol, thanks for sharing your knowledge.

diliptilonia
Автор

your teaching way is clean and very powerful !! please keep it up

hardipgajera
Автор

Now i got whole understanding of custom delegate and where we have to use that . I like the way you relate each concept with our daily life example which trigger quickly.Thanks a lot buddy

jaisinghsisodia
Автор

You make a really very awesome videos, I have watch your 6--8 videos that really helpful for me. Keep it up bro.

Thanks for these contents.

mohittomer
Автор

Thank God finally I found one quite understandable video . Keep it up😀😀😃😃😃

arbintajnawaz
Автор

simple and straightforward .. nice tutorial .. please also make a tutorial on weak, strong, unowned etc.. we cannot explain to interviewer when they asked about that :(

natureloverspakistan
Автор

Bhai the main thing is you take exaples and you teach us from the basics keep continue your work

rishilund
Автор

Thanks man, finally clear all doubts.

shivshankargupta
Автор

Bhai kia mast samjhatay ho yr aap. bht aala <3

shahzaibqureshi
Автор

Hey you are so good, Keep it up. Doing great job man.

samargupta
Автор

The best explanation and Nice Tutorial 👍🏻
Goku is also my favorite 😉

AhsanZahidDevb
Автор

i anyways implement delegates using protocol ..another toist from my side vc class ko tableview cell me as a reference pas ker ke vc class ke function call kiye the leki mujh ye approach sahi nae lgi.. r sch me pehly mujh pta b nae tha ...ye b pure delegate pattern approach he .. :p thanks for sharing valuable information

natureloverspakistan
Автор

Thanks sir to share the awesome lecture 👍👍🙏🙏🙏

puneetbhagat
Автор

Best explanation love your tutorials @Code Cat

rehanismail
Автор

Hello Ravi,

Your explanations are really good and very understandable too. 

I found a point in this video which is required bit more clarification which I want to highlight here.
You started with an approach where you were not using <Keyword "PROTOCOL">.
After that you specified reason, why we should use <Keyword "PROTOCOL"> and that reason was to avoid human error regarding function declaration. Might be developer forgot to write function.
That is right but can you specify a bit more like - As per my understanding, we use that keyword it give/provide us flexibility to add required function directly while you add/Fetch protocol in your class. So that, developer will never forget to implement that function whenever/where ever, he/she required it and through this we can maintain function names as well.

If I said something wrong please correct me.

Thanks for your videos. Your videos are really good and admirable.

nehajain
Автор

Sir, very good explanation. I really like your video especially the flow of explanation with analogies :) Kindly keep up the good work.
I had 1 question: it might be silly but still worth a shot.

Since the Developer Instance is getting created inside Manager anyways, why cant Developer simply return the value of the addition?

ganesha
Автор

Hi, Please make video on AppDelegate vs SceneDelegate

advikkumar
Автор

sir, can we communicate with more than two classes at the time using prototcol and delegate method?

garimavishwakarma
welcome to shbcf.ru