adspace


How does closure work in swift?

Answer Posted / Prem Narayan Kharwar

In Swift, a closure is a self-contained block of functionality that can be passed around and used in your code. It captures and stores references to any constants and variables from the context in which it is defined.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you define a base class in swift?

931


Explain some biggest changes in usernotifications.

926


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

900