adspace


Why we use delegates in swift?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain some biggest changes in usernotifications.

926


How can you define a base class in swift?

931


Explain the common execution states for a swift ios app (ios application lifecycle).

900