in Technology by
What is a delegate in swift?

1 Answer

0 votes
by

Delegate is a design pattern, which is used to pass the data or communication between structs or classes. Delegate allows sending a message from one object to another object when a specific event happens and is used for handling table view and collection view events.

Delegates have one to one relationship and one to one communication.

Related questions

0 votes
    What is a multicast delegate in C#?...
asked Jul 27, 2021 in Technology by JackTerrance
0 votes
+1 vote
    To delegate administrative tasks for specific resource groups in Azure which?...
asked Oct 20, 2020 in Technology by JackTerrance
0 votes
    I'm working on an extension (BHO) for Internet Explorer, and having trouble attaching a .NET delegate to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    I want to assign to a datatable such that. If datatable is null create a new datatable else clear ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 4, 2022 in Education by JackTerrance
0 votes
    I have developed one application in which i have to detect whether user has tapped home button or whether ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    I have developed one application in which i have to detect whether user has tapped home button or whether ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    What is Business Delegate pattern?...
asked Nov 7, 2020 in Education by Editorial Staff
0 votes
    How to change Swift version from 5 to 4 in Xcode?...
asked Mar 9, 2021 in Technology by JackTerrance
0 votes
    How do I see which version of Swift I'm using?...
asked Mar 9, 2021 in Technology by JackTerrance
0 votes
    How to iterate a loop with index and element in Swift?...
asked Mar 9, 2021 in Technology by JackTerrance
0 votes
    Can we use both swift (.swft) and objective c (.h .m) in same xcode project ?...
asked Mar 9, 2021 in Technology by JackTerrance
0 votes
    How do I call Objective-C code from Swift?...
asked Mar 9, 2021 in Technology by JackTerrance
0 votes
    What is a GUARD statement? What is the benefit of using the GUARD statement in swift?...
asked Nov 30, 2020 in Technology by JackTerrance
0 votes
    What is the use of double question mark “??” in swift?...
asked Nov 30, 2020 in Technology by JackTerrance
...