Skip to content

garg204/SampleProtocolDelegateExtension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

SampleProtocolDelegateExtension

Here , I have implemened the method inside extension which can be used by number of controller without redefining the code for same method in each view controller after confirming to delegate. I have created sample Protocol class and extension for same where I have defined the method. In SecondVC , I have created a instance of Protocol and calling the protocol method inside the button click. On button click MainVC will appear and delegate method will be called.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages