Why we use delegates in swift?
Answer / Shravan Tandon
Delegation is used in Swift to enable two objects to work together more closely. A delegate object is set as a property on one of the objects, and it conforms to a protocol defined by the other object. The delegate can then receive messages from the other object when certain events occur.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is atomic swift?
How do I add a header in swift?
What is static let in swift?
What are the differences between a struct and a class?
In swift, what type of object are basic data types?
What is a tuple in swift?
What is a guard statement? What is the benefit of using guard statement in swift?
What is swift programming language?
What are the different ways to pass data in swift?
How will you define base class?
What is ios swift?
Does swift have header files?