Why we use delegates in swift?



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

Post New Answer

More Apple iOS Swift Interview Questions

What is atomic swift?

1 Answers  


How do I add a header in swift?

1 Answers  


What is static let in swift?

1 Answers  


What are the differences between a struct and a class?

1 Answers  


In swift, what type of object are basic data types?

1 Answers  


What is a tuple in swift?

1 Answers  


What is a guard statement? What is the benefit of using guard statement in swift?

1 Answers  


What is swift programming language?

1 Answers  


What are the different ways to pass data in swift?

1 Answers  


How will you define base class?

1 Answers  


What is ios swift?

1 Answers  


Does swift have header files?

1 Answers  


Categories